package
0.0.0-20250207164621-7a1f277a159e
Repository: https://github.com/gomarkdown/markdown.git
Documentation: pkg.go.dev

# Functions

BlockAttrs takes a node and checks if it has block level attributes set.
Escape writes the text to w, but skips the escape character.
EscapeHTML writes html-escaped d to w.
NewRenderer creates and configures an Renderer object, which satisfies the Renderer interface.
NewSmartypantsRenderer constructs a Smartypants renderer object.
TODO: move to internal package Create a url-safe slug for fragments.
TagWithAttributes creates a HTML tag with a given name and attributes.

# Constants

HTML renderer configuration options.
Generate a complete HTML page.
HTML renderer configuration options.
Do not output an HR after starting a footnote list.
Generate a link at the end of a footnote to return to the source.
Add a blank target.
Include loading="lazy" with images.
Only link with rel="nofollow".
Only link with rel="noopener".
Only link with rel="noreferrer".
Only link to trusted protocols.
Skip preformatted HTML blocks.
Skip embedded images.
Skip all links.
Enable smart punctuation substitutions.
Enable angled double quotes (with Smartypants) for double quotes rendering.
Enable smart dashes (with Smartypants).
Enable smart fractions (with Smartypants).
Enable LaTeX-style dashes (with Smartypants).
Enable « French guillemets » (with Smartypants).
Generate a table of contents.
Generate XHTML output instead of HTML.

# Variables

Escaper defines how to escape HTML special characters.
IDTag is the tag used for tag identification, it defaults to "id", some renderers may wish to override this and use e.g.

# Structs

Renderer implements Renderer interface for HTML output.
RendererOptions is a collection of supplementary parameters tweaking the behavior of various parts of HTML renderer.
SPRenderer is a struct containing state of a Smartypants renderer.

# Type aliases

Flags control optional behavior of HTML renderer.
RenderNodeFunc allows reusing most of Renderer logic and replacing rendering of some nodes.