import "code.gitea.io/gitea/modules/markup/common"
footnote.go html.go linkify.go
var FootnoteExtension = &footnoteExtension{}
FootnoteExtension represents the Gitea Footnote
var KindFootnote = ast.NewNodeKind("GiteaFootnote")
KindFootnote is a NodeKind of the Footnote node.
var KindFootnoteBackLink = ast.NewNodeKind("GiteaFootnoteBackLink")
KindFootnoteBackLink is a NodeKind of the FootnoteBackLink node.
var KindFootnoteLink = ast.NewNodeKind("GiteaFootnoteLink")
KindFootnoteLink is a NodeKind of the FootnoteLink node.
var KindFootnoteList = ast.NewNodeKind("GiteaFootnoteList")
KindFootnoteList is a NodeKind of the FootnoteList node.
var ( // LinkRegex is a regexp matching a valid link LinkRegex, _ = xurls.StrictMatchingScheme("https?://") )
var Linkify = &linkify{}
Linkify is an extension that allow you to parse text that seems like a URL.
CleanValue 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...
func NewFootnoteASTTransformer() parser.ASTTransformer
NewFootnoteASTTransformer returns a new parser.ASTTransformer that insert a footnote list to the last of the document.
func NewFootnoteBlockParser() parser.BlockParser
NewFootnoteBlockParser returns a new parser.BlockParser that can parse footnotes of the Markdown(PHP Markdown Extra) text.
func NewFootnoteHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
NewFootnoteHTMLRenderer returns a new FootnoteHTMLRenderer.
func NewFootnoteParser() parser.InlineParser
NewFootnoteParser returns a new parser.InlineParser that can parse footnote links of the Markdown(PHP Markdown Extra) text.
func NewLinkifyParser() parser.InlineParser
NewLinkifyParser return a new InlineParser can parse text that seems like a URL.
A Footnote struct represents a footnote of Markdown (PHP Markdown Extra) text.
NewFootnote returns a new Footnote node.
Dump implements Node.Dump.
Kind implements Node.Kind.
type FootnoteBackLink struct { ast.BaseInline Index int Name []byte }
A FootnoteBackLink struct represents a link to a footnote of Markdown (PHP Markdown Extra) text.
func NewFootnoteBackLink(index int, name []byte) *FootnoteBackLink
NewFootnoteBackLink returns a new FootnoteBackLink node.
func (n *FootnoteBackLink) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *FootnoteBackLink) Kind() ast.NodeKind
Kind implements Node.Kind.
FootnoteHTMLRenderer is a renderer.NodeRenderer implementation that renders FootnoteLink nodes.
func (r *FootnoteHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
type FootnoteLink struct { ast.BaseInline Index int Name []byte }
A FootnoteLink struct represents a link to a footnote of Markdown (PHP Markdown Extra) text.
func NewFootnoteLink(index int, name []byte) *FootnoteLink
NewFootnoteLink returns a new FootnoteLink node.
func (n *FootnoteLink) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *FootnoteLink) Kind() ast.NodeKind
Kind implements Node.Kind.
A FootnoteList struct represents footnotes of Markdown (PHP Markdown Extra) text.
func NewFootnoteList() *FootnoteList
NewFootnoteList returns a new FootnoteList node.
func (n *FootnoteList) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *FootnoteList) Kind() ast.NodeKind
Kind implements Node.Kind.
Package common imports 14 packages (graph) and is imported by 12 packages. Updated 2021-01-03. Refresh now. Tools for package owners.