package
0.0.0-20240404192634-b7e33c6ac3d4
Repository: https://github.com/status-im/markdown.git
Documentation: pkg.go.dev
# Functions
IsCallout detects a callout in the following format: <<N>> Where N is a integer > 0.
New creates a markdown parser with CommonExtensions.
NewWithExtensions creates a markdown parser with given extensions.
# Constants
Block Attributes.
Create the heading ID from the text.
Detect embedded URLs that are not explicitly marked.
Translate trailing backslashes into line breaks.
Bit flags representing markdown parsing extensions.
Parse definition lists.
2 empty lines break out of list.
Parse fenced code blocks.
Parser renderer configuration options.
Pandoc-style footnotes.
Translate newlines into line breaks.
specify heading IDs with {#id}.
Support including other files.
Loosen up HTML block parsing rules.
Parse MathJax.
Support Mmark syntax, see https://mmark.nl/syntax.
No need to insert an empty line to start a (code, quote, ordered list, unordered list) block.
Bit flags representing markdown parsing extensions.
Ignore emphasis markers inside words.
Translate backspace spaces into line non-blocking spaces.
Keep track of the first number used when starting an ordered list.
Skip adding the footnote list (regardless if they are parsed).
Be strict about prefix heading rules.
Strikethrough text using ~~test~~.
Super- and subscript support: 2^10^, H~2~O.
Parse tables.
Expand tabs to eight spaces instead of four.
Titleblock ala pandoc.
# Type aliases
BlockFunc allows to registration of a parser function.
Extensions is a bitmask of enabled parser extensions.
Flags control optional behavior of parser.
ReadIncludeFunc should read the file under path and returns the read bytes, from will be set to the name of the current file being parsed.
ReferenceOverrideFunc is expected to be called with a reference string and return either a valid Reference type that the reference string maps to or nil.