Versions in this module Expand all Collapse all v0 v0.1.0 Aug 8, 2026 Changes in this version + func ToHTML(src string, opts *Options) string + type Attr struct + Name string + Val string + type Document struct + Opts Options + Root *Element + Warnings []string + func New(src string, opts *Options) *Document + func (d *Document) ToHTML() string + type Element struct + Attrs []Attr + Children []*Element + Options map[string]any + Type ElementType + Value string + type ElementType int + const ElA + const ElAbbr + const ElBlank + const ElBlockquote + const ElBr + const ElCodeblock + const ElCodespan + const ElComment + const ElDD + const ElDL + const ElDT + const ElEm + const ElFootnoteDef + const ElFootnoteRef + const ElHR + const ElHTMLElement + const ElHeader + const ElImg + const ElLI + const ElMath + const ElOL + const ElP + const ElRaw + const ElRawHTMLSpan + const ElRoot + const ElSmartQuote + const ElStrong + const ElTable + const ElTbody + const ElTd + const ElText + const ElTfoot + const ElThead + const ElTr + const ElTypographicSym + const ElUL + const ElXMLComment + const ElXMLPI + type LinkDef struct + Title string + URL string + type Options struct + AutoIdPrefix string + AutoIdStripping bool + AutoIds bool + EntityOutput string + FootnoteBacklink string + FootnoteBacklinkInline bool + FootnoteLinkText string + FootnoteNr int + FootnotePrefix string + HardWrap bool + HeaderLinks bool + HeaderOffset int + HtmlToNative bool + Input string + LinkDefs map[string]LinkDef + MathEngine string + ParseBlockHTML bool + ParseSpanHTML bool + RemoveLineBreaksForCJK bool + SmartQuotes bool + SmartQuotesSubst [4]string + SyntaxHighlighter string + SyntaxHighlighterOpts SyntaxHighlighterOpts + TocLevels []int + TransliteratedHeaderIds bool + Typographic bool + TypographicSymbols map[string]string + func DefaultOptions() Options + type SyntaxHighlighterOpts struct + BlockDisable bool + DefaultLang string + GuessLang bool + SpanDisable bool