Versions in this module Expand all Collapse all v1 v1.0.2 Jul 19, 2021 v1.0.1 Jul 19, 2021 Changes in this version + var Escaper = [256][]byte + var IDTag = "id" + func BlockAttrs(node ast.Node) []string + func Escape(w io.Writer, text []byte) + func EscapeHTML(w io.Writer, d []byte) + func TagWithAttributes(name string, attrs []string) string + type Flags int + const CommonFlags + const CompletePage + const FlagsNone + const FootnoteNoHRTag + const FootnoteReturnLinks + const HrefTargetBlank + const LazyLoadImages + const NofollowLinks + const NoopenerLinks + const NoreferrerLinks + const Safelink + const SkipHTML + const SkipImages + const SkipLinks + const Smartypants + const SmartypantsAngledQuotes + const SmartypantsDashes + const SmartypantsFractions + const SmartypantsLatexDashes + const SmartypantsQuotesNBSP + const TOC + const UseXHTML + type RenderNodeFunc func(w io.Writer, node ast.Node, entering bool) (ast.WalkStatus, bool) + type Renderer struct + DisableTags int + func NewRenderer(opts RendererOptions) *Renderer + func (r *Renderer) CR(w io.Writer) + func (r *Renderer) Callout(w io.Writer, node *ast.Callout) + func (r *Renderer) Caption(w io.Writer, caption *ast.Caption, entering bool) + func (r *Renderer) CaptionFigure(w io.Writer, figure *ast.CaptionFigure, entering bool) + func (r *Renderer) Citation(w io.Writer, node *ast.Citation) + func (r *Renderer) Code(w io.Writer, node *ast.Code) + func (r *Renderer) CodeBlock(w io.Writer, codeBlock *ast.CodeBlock) + func (r *Renderer) DocumentMatter(w io.Writer, node *ast.DocumentMatter, entering bool) + func (r *Renderer) EscapeHTMLCallouts(w io.Writer, d []byte) + func (r *Renderer) HTMLBlock(w io.Writer, node *ast.HTMLBlock) + func (r *Renderer) HTMLSpan(w io.Writer, span *ast.HTMLSpan) + func (r *Renderer) HardBreak(w io.Writer, node *ast.Hardbreak) + func (r *Renderer) Heading(w io.Writer, node *ast.Heading, entering bool) + func (r *Renderer) HorizontalRule(w io.Writer, node *ast.HorizontalRule) + func (r *Renderer) Image(w io.Writer, node *ast.Image, entering bool) + func (r *Renderer) Index(w io.Writer, node *ast.Index) + func (r *Renderer) Link(w io.Writer, link *ast.Link, entering bool) + func (r *Renderer) List(w io.Writer, list *ast.List, entering bool) + func (r *Renderer) ListItem(w io.Writer, listItem *ast.ListItem, entering bool) + func (r *Renderer) NonBlockingSpace(w io.Writer, node *ast.NonBlockingSpace) + func (r *Renderer) Out(w io.Writer, d []byte) + func (r *Renderer) OutOneOf(w io.Writer, outFirst bool, first string, second string) + func (r *Renderer) OutOneOfCr(w io.Writer, outFirst bool, first string, second string) + func (r *Renderer) Outs(w io.Writer, s string) + func (r *Renderer) Paragraph(w io.Writer, para *ast.Paragraph, entering bool) + func (r *Renderer) RenderFooter(w io.Writer, _ ast.Node) + func (r *Renderer) RenderHeader(w io.Writer, ast ast.Node) + func (r *Renderer) RenderNode(w io.Writer, node ast.Node, entering bool) ast.WalkStatus + func (r *Renderer) TableBody(w io.Writer, node *ast.TableBody, entering bool) + func (r *Renderer) TableCell(w io.Writer, tableCell *ast.TableCell, entering bool) + func (r *Renderer) Text(w io.Writer, text *ast.Text) + type RendererOptions struct + AbsolutePrefix string + CSS string + CitationFormatString string + Comments [][]byte + Flags Flags + FootnoteAnchorPrefix string + FootnoteReturnLinkContents string + Generator string + Head []byte + HeadingIDPrefix string + HeadingIDSuffix string + Icon string + RenderNodeHook RenderNodeFunc + Title string + type SPRenderer struct + func NewSmartypantsRenderer(flags Flags) *SPRenderer + func (r *SPRenderer) Process(w io.Writer, text []byte)