Versions in this module Expand all Collapse all v2 v2.0.2 Jan 5, 2020 Changes in this version + const AutoHeadingIDs + const Autolink + const BackslashLineBreak + const CommonExtensions + const CommonHTMLFlags + const DefinitionLists + const FencedCode + const Footnotes + const HardLineBreak + const HeadingIDs + const LaxHTMLBlocks + const NoEmptyLineBeforeBlock + const NoExtensions + const NoIntraEmphasis + const SpaceHeadings + const Strikethrough + const TabSizeDefault + const TabSizeDouble + const TabSizeEight + const Tables + const Titleblock + const Version + func Run(input []byte, opts ...Option) []byte + func SanitizedAnchorName(text string) string + type CellAlignFlags int + const TableAlignmentCenter + const TableAlignmentLeft + const TableAlignmentRight + type CodeBlockData struct + FenceChar byte + FenceLength int + FenceOffset int + Info []byte + IsFenced bool + type Extensions int + type HTMLFlags int + const CompletePage + const FootnoteReturnLinks + const HTMLFlagsNone + const HrefTargetBlank + 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 HTMLRenderer struct + func NewHTMLRenderer(params HTMLRendererParameters) *HTMLRenderer + func (r *HTMLRenderer) RenderFooter(w io.Writer, ast *Node) + func (r *HTMLRenderer) RenderHeader(w io.Writer, ast *Node) + func (r *HTMLRenderer) RenderNode(w io.Writer, node *Node, entering bool) WalkStatus + type HTMLRendererParameters struct + AbsolutePrefix string + CSS string + Flags HTMLFlags + FootnoteAnchorPrefix string + FootnoteReturnLinkContents string + HeadingIDPrefix string + HeadingIDSuffix string + HeadingLevelOffset int + Icon string + Title string + type HeadingData struct + HeadingID string + IsTitleblock bool + Level int + type LinkData struct + Destination []byte + Footnote *Node + NoteID int + Title []byte + type ListData struct + BulletChar byte + Delimiter byte + IsFootnotesList bool + ListFlags ListType + RefLink []byte + Tight bool + type ListType int + const ListItemBeginningOfList + const ListItemContainsBlock + const ListItemEndOfList + const ListTypeDefinition + const ListTypeOrdered + const ListTypeTerm + type Markdown struct + func New(opts ...Option) *Markdown + func (p *Markdown) Parse(input []byte) *Node + type Node struct + FirstChild *Node + LastChild *Node + Literal []byte + Next *Node + Parent *Node + Prev *Node + Type NodeType + func NewNode(typ NodeType) *Node + func (n *Node) AppendChild(child *Node) + func (n *Node) InsertBefore(sibling *Node) + func (n *Node) IsContainer() bool + func (n *Node) IsLeaf() bool + func (n *Node) String() string + func (n *Node) Unlink() + func (n *Node) Walk(visitor NodeVisitor) + type NodeType int + const BlockQuote + const Code + const CodeBlock + const Del + const Document + const Emph + const HTMLBlock + const HTMLSpan + const Hardbreak + const Heading + const HorizontalRule + const Image + const Item + const Link + const List + const Paragraph + const Softbreak + const Strong + const Table + const TableBody + const TableCell + const TableHead + const TableRow + const Text + func (t NodeType) String() string + type NodeVisitor func(node *Node, entering bool) WalkStatus + type Option func(*Markdown) + func WithExtensions(e Extensions) Option + func WithNoExtensions() Option + func WithRefOverride(o ReferenceOverrideFunc) Option + func WithRenderer(r Renderer) Option + type Reference struct + Link string + Text string + Title string + type ReferenceOverrideFunc func(reference string) (ref *Reference, overridden bool) + type Renderer interface + RenderFooter func(w io.Writer, ast *Node) + RenderHeader func(w io.Writer, ast *Node) + RenderNode func(w io.Writer, node *Node, entering bool) WalkStatus + type SPRenderer struct + func NewSmartypantsRenderer(flags HTMLFlags) *SPRenderer + func (r *SPRenderer) Process(w io.Writer, text []byte) + type TableCellData struct + Align CellAlignFlags + IsHeader bool + type WalkStatus int + const GoToNext + const SkipChildren + const Terminate Other modules containing this package github.com/jbowes/blackfriday