package extension

Import Path
	github.com/yuin/goldmark/extension (on go.dev)

Dependency Relation
	imports 13 packages, and imported by one package


Package-Level Type Names (total 54, in which 16 are exported)
/* sort exporteds by: | */
DefinitionListHTMLRenderer is a renderer.NodeRenderer implementation that renders DefinitionList nodes. Config html.Config Config.HardWraps bool Config.Unsafe bool Config.Writer html.Writer Config.XHTML bool RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs. SetOption implements renderer.NodeRenderer.SetOption. *T : github.com/yuin/goldmark/renderer.NodeRenderer *T : github.com/yuin/goldmark/renderer.SetOptioner
FootnoteConfig holds configuration values for the footnote extension. Link* and Backlink* configurations have some variables: Occurrances of “^^” in the string will be replaced by the corresponding footnote number in the HTML output. Occurrances of “%%” will be replaced by a number for the reference (footnotes can have multiple references). BacklinkClass is a class for footnote backlinks. BacklinkHTML is an HTML content for footnote backlinks. BacklinkTitle is an optional title attribute for footnote backlinks. Config html.Config Config.HardWraps bool Config.Unsafe bool Config.Writer html.Writer Config.XHTML bool IDPrefix is a prefix for the id attributes generated by footnotes. IDPrefix is a function that determines the id attribute for given Node. LinkClass is a class for footnote links. LinkTitle is an optional title attribute for footnote links. SetOption implements renderer.SetOptioner. *T : github.com/yuin/goldmark/renderer.SetOptioner func NewFootnoteConfig() FootnoteConfig func FootnoteOption.SetFootnoteOption(*FootnoteConfig)
FootnoteHTMLRenderer is a renderer.NodeRenderer implementation that renders FootnoteLink nodes. FootnoteConfig FootnoteConfig BacklinkClass is a class for footnote backlinks. BacklinkHTML is an HTML content for footnote backlinks. BacklinkTitle is an optional title attribute for footnote backlinks. FootnoteConfig.Config html.Config FootnoteConfig.Config.HardWraps bool FootnoteConfig.Config.Unsafe bool FootnoteConfig.Config.Writer html.Writer FootnoteConfig.Config.XHTML bool IDPrefix is a prefix for the id attributes generated by footnotes. IDPrefix is a function that determines the id attribute for given Node. LinkClass is a class for footnote links. LinkTitle is an optional title attribute for footnote links. RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs. SetOption implements renderer.SetOptioner. *T : github.com/yuin/goldmark/renderer.NodeRenderer *T : github.com/yuin/goldmark/renderer.SetOptioner
FootnoteOption interface is a functional option interface for the extension. ( T) SetConfig(*renderer.Config) SetFootnoteOption sets given option to the extension. T : github.com/yuin/goldmark/renderer.Option func WithFootnoteBacklinkClass(a []byte) FootnoteOption func WithFootnoteBacklinkHTML(a []byte) FootnoteOption func WithFootnoteBacklinkTitle(a []byte) FootnoteOption func WithFootnoteHTMLOptions(opts ...html.Option) FootnoteOption func WithFootnoteIDPrefix(a []byte) FootnoteOption func WithFootnoteIDPrefixFunction(a func(gast.Node) []byte) FootnoteOption func WithFootnoteLinkClass(a []byte) FootnoteOption func WithFootnoteLinkTitle(a []byte) FootnoteOption func NewFootnote(opts ...FootnoteOption) goldmark.Extender func NewFootnoteHTMLRenderer(opts ...FootnoteOption) renderer.NodeRenderer
An LinkifyConfig struct is a data structure that holds configuration of the Linkify extension. AllowedProtocols [][]byte EmailRegexp *regexp.Regexp URLRegexp *regexp.Regexp WWWRegexp *regexp.Regexp SetOption implements SetOptioner. *T : github.com/yuin/goldmark/parser.SetOptioner func LinkifyOption.SetLinkifyOption(*LinkifyConfig)
A LinkifyOption interface sets options for the LinkifyOption. ( T) SetLinkifyOption(*LinkifyConfig) ( T) SetParserOption(*parser.Config) T : github.com/yuin/goldmark/parser.Option func WithLinkifyAllowedProtocols(value [][]byte) LinkifyOption func WithLinkifyEmailRegexp(value *regexp.Regexp) LinkifyOption func WithLinkifyURLRegexp(value *regexp.Regexp) LinkifyOption func WithLinkifyWWWRegexp(value *regexp.Regexp) LinkifyOption func NewLinkify(opts ...LinkifyOption) goldmark.Extender func NewLinkifyParser(opts ...LinkifyOption) parser.InlineParser
StrikethroughHTMLRenderer is a renderer.NodeRenderer implementation that renders Strikethrough nodes. Config html.Config Config.HardWraps bool Config.Unsafe bool Config.Writer html.Writer Config.XHTML bool RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs. SetOption implements renderer.NodeRenderer.SetOption. *T : github.com/yuin/goldmark/renderer.NodeRenderer *T : github.com/yuin/goldmark/renderer.SetOptioner
TableCellAlignMethod indicates how are table cells aligned in HTML format.indicates how are table cells aligned in HTML format. func WithTableCellAlignMethod(a TableCellAlignMethod) TableOption const TableCellAlignAttribute const TableCellAlignDefault const TableCellAlignNone const TableCellAlignStyle
TableConfig struct holds options for the extension. Config html.Config Config.HardWraps bool Config.Unsafe bool Config.Writer html.Writer Config.XHTML bool TableCellAlignMethod indicates how are table celss aligned. SetOption implements renderer.SetOptioner. *T : github.com/yuin/goldmark/renderer.SetOptioner func NewTableConfig() TableConfig func TableOption.SetTableOption(*TableConfig)
TableHTMLRenderer is a renderer.NodeRenderer implementation that renders Table nodes. TableConfig TableConfig TableConfig.Config html.Config TableConfig.Config.HardWraps bool TableConfig.Config.Unsafe bool TableConfig.Config.Writer html.Writer TableConfig.Config.XHTML bool TableCellAlignMethod indicates how are table celss aligned. RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs. SetOption implements renderer.SetOptioner. *T : github.com/yuin/goldmark/renderer.NodeRenderer *T : github.com/yuin/goldmark/renderer.SetOptioner
TableOption interface is a functional option interface for the extension. ( T) SetConfig(*renderer.Config) SetTableOption sets given option to the extension. T : github.com/yuin/goldmark/renderer.Option func WithTableCellAlignMethod(a TableCellAlignMethod) TableOption func WithTableHTMLOptions(opts ...html.Option) TableOption func NewTable(opts ...TableOption) goldmark.Extender func NewTableHTMLRenderer(opts ...TableOption) renderer.NodeRenderer
TaskCheckBoxHTMLRenderer is a renderer.NodeRenderer implementation that renders checkboxes in list items. Config html.Config Config.HardWraps bool Config.Unsafe bool Config.Writer html.Writer Config.XHTML bool RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs. SetOption implements renderer.NodeRenderer.SetOption. *T : github.com/yuin/goldmark/renderer.NodeRenderer *T : github.com/yuin/goldmark/renderer.SetOptioner
An TypographerConfig struct is a data structure that holds configuration of the Typographer extension. Substitutions [][]byte SetOption implements SetOptioner. *T : github.com/yuin/goldmark/parser.SetOptioner func TypographerOption.SetTypographerOption(*TypographerConfig)
A TypographerOption interface sets options for the TypographerParser. ( T) SetParserOption(*parser.Config) ( T) SetTypographerOption(*TypographerConfig) T : github.com/yuin/goldmark/parser.Option func WithTypographicSubstitutions(values map[TypographicPunctuation][]byte) TypographerOption func NewTypographer(opts ...TypographerOption) goldmark.Extender func NewTypographerParser(opts ...TypographerOption) parser.InlineParser
TypographicPunctuation is a key of the punctuations that can be replaced with typographic entities. func WithTypographicSubstitutions(values map[TypographicPunctuation][]byte) TypographerOption const Apostrophe const Ellipsis const EmDash const EnDash const LeftAngleQuote const LeftDoubleQuote const LeftSingleQuote const RightAngleQuote const RightDoubleQuote const RightSingleQuote
TypographicSubstitutions is a list of the substitutions for the Typographer extension.
Package-Level Functions (total 41, in which 37 are exported)
NewDefinitionDescriptionParser return a new parser.BlockParser that can parse definition description starts with ':'.
NewDefinitionListHTMLRenderer returns a new DefinitionListHTMLRenderer.
NewDefinitionListParser return a new parser.BlockParser that can parse PHP Markdown Extra Definition lists.
NewFootnote returns a new extension with given options.
NewFootnoteASTTransformer returns a new parser.ASTTransformer that insert a footnote list to the last of the document.
NewFootnoteBlockParser returns a new parser.BlockParser that can parse footnotes of the Markdown(PHP Markdown Extra) text.
NewFootnoteConfig returns a new Config with defaults.
NewFootnoteHTMLRenderer returns a new FootnoteHTMLRenderer.
NewFootnoteParser returns a new parser.InlineParser that can parse footnote links of the Markdown(PHP Markdown Extra) text.
NewLinkifyParser return a new InlineParser can parse text that seems like a URL.
NewStrikethroughHTMLRenderer returns a new StrikethroughHTMLRenderer.
NewStrikethroughParser return a new InlineParser that parses strikethrough expressions.
NewTable returns a new extension with given options.
NewTableASTTransformer returns a parser.ASTTransformer for tables.
NewTableConfig returns a new Config with defaults.
NewTableHTMLRenderer returns a new TableHTMLRenderer.
NewTableParagraphTransformer returns a new ParagraphTransformer that can transform paragraphs into tables.
NewTaskCheckBoxHTMLRenderer returns a new TaskCheckBoxHTMLRenderer.
NewTaskCheckBoxParser returns a new InlineParser that can parse checkboxes in list items. This parser must take precedence over the parser.LinkParser.
NewTypographer returns a new Extender that replaces punctuations with typographic entities.
NewTypographerParser return a new InlineParser that parses typographer expressions.
WithFootnoteBacklinkClass is a functional option that is a class for footnote backlinks.
WithFootnoteBacklinkHTML is an HTML content for footnote backlinks.
WithFootnoteBacklinkTitle is a functional option that is an optional title attribute for footnote backlinks.
WithFootnoteHTMLOptions is functional option that wraps goldmark HTMLRenderer options.
WithFootnoteIDPrefix is a functional option that is a prefix for the id attributes generated by footnotes.
WithFootnoteIDPrefixFunction is a functional option that is a prefix for the id attributes generated by footnotes.
WithFootnoteLinkClass is a functional option that is a class for footnote links.
WithFootnoteLinkTitle is a functional option that is an optional title attribute for footnote links.
WithLinkifyAllowedProtocols is a functional option that specify allowed protocols in autolinks. Each protocol must end with ':' like 'http:' .
WithLinkifyURLRegexp is a functional option that specify a pattern of the URL including a protocol.
WithTableCellAlignMethod is a functional option that indicates how are table cells aligned in HTML format.
WithTableHTMLOptions is functional option that wraps goldmark HTMLRenderer options.
WithTypographicSubstitutions is a functional otpion that specify replacement text for punctuations.
Package-Level Variables (total 43, in which 17 are exported)
DefinitionDescriptionAttributeFilter defines attribute names which dd elements can have.
DefinitionList is an extension that allow you to use PHP Markdown Extra Definition lists.
DefinitionListAttributeFilter defines attribute names which dl elements can have.
DefinitionTermAttributeFilter defines attribute names which dd elements can have.
Footnote is an extension that allow you to use PHP Markdown Extra Footnotes.
GFM is an extension that provides Github Flavored markdown functionalities.
Linkify is an extension that allow you to parse text that seems like a URL.
Strikethrough is an extension that allow you to use strikethrough expression like '~~text~~' .
StrikethroughAttributeFilter defines attribute names which dd elements can have.
Table is an extension that allow you to use GFM tables .
TableAttributeFilter defines attribute names which table elements can have.
TableHeaderAttributeFilter defines attribute names which <thead> elements can have.
TableRowAttributeFilter defines attribute names which <tr> elements can have.
TableTdCellAttributeFilter defines attribute names which table <td> cells can have.
TableThCellAttributeFilter defines attribute names which table <th> cells can have.
TaskList is an extension that allow you to use GFM task lists.
Typographer is an extension that replaces punctuations with typographic entities.
Package-Level Constants (total 28, in which 14 are exported)
Apostrophe is '
Ellipsis is ...
EmDash is ---
LeftAngleQuote is <<
LeftDoubleQuote is "
LeftSingleQuote is '
RightAngleQuote is >>
RightDoubleQuote is "
RightSingleQuote is '
TableCellAlignAttribute renders alignments as an align attribute.
TableCellAlignDefault renders alignments by default method. With XHTML, alignments are rendered as an align attribute. With HTML5, alignments are rendered as a style attribute.
TableCellAlignNone does not care about alignments. If you using classes or other styles, you can add these attributes in an ASTTransformer.
TableCellAlignStyle renders alignments as a style attribute.