{"modulePath":"github.com/RedAFD/code-core","version":"v1.14.0-rc8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package common\n\n## Variables\n\n```go\nvar FootnoteExtension = \u0026footnoteExtension{}\n```\nFootnoteExtension represents the Gitea Footnote\n\n```go\nvar KindFootnote = ast.NewNodeKind(\"GiteaFootnote\")\n```\nKindFootnote is a NodeKind of the Footnote node.\n\n```go\nvar KindFootnoteBackLink = ast.NewNodeKind(\"GiteaFootnoteBackLink\")\n```\nKindFootnoteBackLink is a NodeKind of the FootnoteBackLink node.\n\n```go\nvar KindFootnoteLink = ast.NewNodeKind(\"GiteaFootnoteLink\")\n```\nKindFootnoteLink is a NodeKind of the FootnoteLink node.\n\n```go\nvar KindFootnoteList = ast.NewNodeKind(\"GiteaFootnoteList\")\n```\nKindFootnoteList is a NodeKind of the FootnoteList node.\n\n```go\nvar (\n\n\t// LinkRegex is a regexp matching a valid link\n\tLinkRegex, _ = xurls.StrictMatchingScheme(\"https?://\")\n)\n```\n\n```go\nvar Linkify = \u0026linkify{}\n```\nLinkify is an extension that allow you to parse text that seems like a URL.\n\n## Functions\n\n```go\nfunc CleanValue(value []byte) []byte\n```\nCleanValue will clean a value to make it safe to be an id This function is quite different from the original goldmark function and more closely matches the output from the shurcooL sanitizer In particular Unicode letters and numbers are a lot more than a-zA-Z0-9...\n\n```go\nfunc NewFootnoteASTTransformer() parser.ASTTransformer\n```\nNewFootnoteASTTransformer returns a new parser.ASTTransformer that insert a footnote list to the last of the document.\n\n```go\nfunc NewFootnoteBlockParser() parser.BlockParser\n```\nNewFootnoteBlockParser returns a new parser.BlockParser that can parse footnotes of the Markdown(PHP Markdown Extra) text.\n\n```go\nfunc NewFootnoteHTMLRenderer(opts ...html.Option) renderer.NodeRenderer\n```\nNewFootnoteHTMLRenderer returns a new FootnoteHTMLRenderer.\n\n```go\nfunc NewFootnoteParser() parser.InlineParser\n```\nNewFootnoteParser returns a new parser.InlineParser that can parse footnote links of the Markdown(PHP Markdown Extra) text.\n\n```go\nfunc NewLinkifyParser() parser.InlineParser\n```\nNewLinkifyParser return a new InlineParser can parse text that seems like a URL.\n\n## Types\n\n```go\ntype Footnote struct {\n\tast.BaseBlock\n\tRef   []byte\n\tIndex int\n\tName  []byte\n}\n```\nA Footnote struct represents a footnote of Markdown (PHP Markdown Extra) text.\n\n```go\nfunc NewFootnote(ref []byte) *Footnote\n```\nNewFootnote returns a new Footnote node.\n\n```go\nfunc (n *Footnote) Dump(source []byte, level int)\n```\nDump implements Node.Dump.\n\n```go\nfunc (n *Footnote) Kind() ast.NodeKind\n```\nKind implements Node.Kind.\n\n```go\ntype FootnoteBackLink struct {\n\tast.BaseInline\n\tIndex int\n\tName  []byte\n}\n```\nA FootnoteBackLink struct represents a link to a footnote of Markdown (PHP Markdown Extra) text.\n\n```go\nfunc NewFootnoteBackLink(index int, name []byte) *FootnoteBackLink\n```\nNewFootnoteBackLink returns a new FootnoteBackLink node.\n\n```go\nfunc (n *FootnoteBackLink) Dump(source []byte, level int)\n```\nDump implements Node.Dump.\n\n```go\nfunc (n *FootnoteBackLink) Kind() ast.NodeKind\n```\nKind implements Node.Kind.\n\n```go\ntype FootnoteHTMLRenderer struct {\n\thtml.Config\n}\n```\nFootnoteHTMLRenderer is a renderer.NodeRenderer implementation that renders FootnoteLink nodes.\n\n```go\nfunc (r *FootnoteHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)\n```\nRegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.\n\n```go\ntype FootnoteLink struct {\n\tast.BaseInline\n\tIndex int\n\tName  []byte\n}\n```\nA FootnoteLink struct represents a link to a footnote of Markdown (PHP Markdown Extra) text.\n\n```go\nfunc NewFootnoteLink(index int, name []byte) *FootnoteLink\n```\nNewFootnoteLink returns a new FootnoteLink node.\n\n```go\nfunc (n *FootnoteLink) Dump(source []byte, level int)\n```\nDump implements Node.Dump.\n\n```go\nfunc (n *FootnoteLink) Kind() ast.NodeKind\n```\nKind implements Node.Kind.\n\n```go\ntype FootnoteList struct {\n\tast.BaseBlock\n\tCount int\n}\n```\nA FootnoteList struct represents footnotes of Markdown (PHP Markdown Extra) text.\n\n```go\nfunc NewFootnoteList() *FootnoteList\n```\nNewFootnoteList returns a new FootnoteList node.\n\n```go\nfunc (n *FootnoteList) Dump(source []byte, level int)\n```\nDump implements Node.Dump.\n\n```go\nfunc (n *FootnoteList) Kind() ast.NodeKind\n```\nKind implements Node.Kind.\n\n","path":"github.com/RedAFD/code-core/modules/markup/common","name":"common","synopsis":"","isRedistributable":true}
