23 lines
425 B
Go
23 lines
425 B
Go
package superscript
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
|
|
"github.com/yuin/goldmark/ast"
|
|
)
|
|
|
|
// Kind is the kind of hashtag AST nodes.
|
|
var Kind = ast.NewNodeKind("Superscript")
|
|
|
|
// Node is a parsed Superscript node.
|
|
type Node struct {
|
|
ast.BaseInline
|
|
}
|
|
|
|
func (*Node) Kind() ast.NodeKind { return Kind }
|
|
|
|
func (n *Node) Dump(src []byte, level int) {
|
|
fmt.Printf("%ssuperscript: \"%s\"\n", strings.Repeat(" ", level), n.Text(src))
|
|
}
|