Versions in this module Expand all Collapse all v0 v0.0.2 Aug 6, 2023 Changes in this version + var Escaper = [256][]byte + var IDTag = "id" + func AddAbsPrefix(link []byte, prefix string) []byte + func BlockAttrs(node ast.Node) []string + func EscLink(w io.Writer, text []byte) + func Escape(w io.Writer, text []byte) + func EscapeHTML(w io.Writer, d []byte) + func FootnoteItem(prefix string, slug []byte) string + func FootnoteRef(prefix string, node *ast.Link) string + func FootnoteReturnLink(prefix, returnLink string, slug []byte) string + func HeadingCloseTagFromLevel(level int) string + func HeadingOpenTagFromLevel(level int) string + func IsList(node ast.Node) bool + func IsListItem(node ast.Node) bool + func IsListItemTerm(node ast.Node) bool + func IsListTight(node ast.Node) bool + func ListItemOpenCR(listItem *ast.ListItem) bool + func SkipParagraphTags(para *ast.Paragraph) bool + func Slugify(in []byte) []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 + IsSafeURLOverride func(url []byte) bool + Opts RendererOptions + 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) EnsureUniqueHeadingID(id string) string + 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) OutHRTag(w io.Writer, attrs []string) + 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) OutTag(w io.Writer, name string, attrs []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 + ParagraphTag string + RenderNodeHook RenderNodeFunc + Title string + type SPRenderer struct + func NewSmartypantsRenderer(flags Flags) *SPRenderer + func (r *SPRenderer) Process(w io.Writer, text []byte)