loading up the forgejo repo on tangled to test page performance
1// Copyright 2024 The Gitea Authors. All rights reserved.
2// SPDX-License-Identifier: MIT
3
4package math
5
6import (
7 "github.com/yuin/goldmark/ast"
8)
9
10// InlineBlock represents inline math e.g. $$...$$
11type InlineBlock struct {
12 Inline
13}
14
15// InlineBlock implements InlineBlock.
16func (n *InlineBlock) InlineBlock() {}
17
18// KindInlineBlock is the kind for math inline block
19var KindInlineBlock = ast.NewNodeKind("MathInlineBlock")
20
21// Kind returns KindInlineBlock
22func (n *InlineBlock) Kind() ast.NodeKind {
23 return KindInlineBlock
24}
25
26// NewInlineBlock creates a new ast math inline block node
27func NewInlineBlock() *InlineBlock {
28 return &InlineBlock{
29 Inline{},
30 }
31}