kubernetes/vendor/github.com/russross/blackfriday/v2/block.go

const charEntity

const escapable

var reBackslashOrAmp

var reEntityOrEscapedChar

// Parse block-level data.
// Note: this function and many that it calls assume that
// the input buffer ends with a newline.
func (p *Markdown) block(data []byte) {}

func (p *Markdown) addBlock(typ NodeType, content []byte) *Node {}

func (p *Markdown) isPrefixHeading(data []byte) bool {}

func (p *Markdown) prefixHeading(data []byte) int {}

func (p *Markdown) isUnderlinedHeading(data []byte) int {}

func (p *Markdown) titleBlock(data []byte, doRender bool) int {}

func (p *Markdown) html(data []byte, doRender bool) int {}

func finalizeHTMLBlock(block *Node) {}

// HTML comment, lax form
func (p *Markdown) htmlComment(data []byte, doRender bool) int {}

// HR, which is the only self-closing block tag considered
func (p *Markdown) htmlHr(data []byte, doRender bool) int {}

func (p *Markdown) htmlFindTag(data []byte) (string, bool) {}

func (p *Markdown) htmlFindEnd(tag string, data []byte) int {}

func (*Markdown) isEmpty(data []byte) int {}

func (*Markdown) isHRule(data []byte) bool {}

// isFenceLine checks if there's a fence line (e.g., ``` or ``` go) at the beginning of data,
// and returns the end index if so, or 0 otherwise. It also returns the marker found.
// If info is not nil, it gets set to the syntax specified in the fence line.
func isFenceLine(data []byte, info *string, oldmarker string) (end int, marker string) {}

// fencedCodeBlock returns the end index if data contains a fenced code block at the beginning,
// or 0 otherwise. It writes to out if doRender is true, otherwise it has no side effects.
// If doRender is true, a final newline is mandatory to recognize the fenced code block.
func (p *Markdown) fencedCodeBlock(data []byte, doRender bool) int {}

func unescapeChar(str []byte) []byte {}

func unescapeString(str []byte) []byte {}

func finalizeCodeBlock(block *Node) {}

func (p *Markdown) table(data []byte) int {}

// check if the specified position is preceded by an odd number of backslashes
func isBackslashEscaped(data []byte, i int) bool {}

func (p *Markdown) tableHeader(data []byte) (size int, columns []CellAlignFlags) {}

func (p *Markdown) tableRow(data []byte, columns []CellAlignFlags, header bool) {}

// returns blockquote prefix length
func (p *Markdown) quotePrefix(data []byte) int {}

// blockquote ends with at least one blank line
// followed by something without a blockquote prefix
func (p *Markdown) terminateBlockquote(data []byte, beg, end int) bool {}

// parse a blockquote fragment
func (p *Markdown) quote(data []byte) int {}

// returns prefix length for block code
func (p *Markdown) codePrefix(data []byte) int {}

func (p *Markdown) code(data []byte) int {}

// returns unordered list item prefix
func (p *Markdown) uliPrefix(data []byte) int {}

// returns ordered list item prefix
func (p *Markdown) oliPrefix(data []byte) int {}

// returns definition list item prefix
func (p *Markdown) dliPrefix(data []byte) int {}

// parse ordered or unordered list block
func (p *Markdown) list(data []byte, flags ListType) int {}

// Returns true if the list item is not the same type as its parent list
func (p *Markdown) listTypeChanged(data []byte, flags *ListType) bool {}

// Returns true if block ends with a blank line, descending if needed
// into lists and sublists.
func endsWithBlankLine(block *Node) bool {}

func finalizeList(block *Node) {}

// Parse a single list item.
// Assumes initial prefix is already removed if this is a sublist.
func (p *Markdown) listItem(data []byte, flags *ListType) int {}

// render a single paragraph that has already been parsed out
func (p *Markdown) renderParagraph(data []byte) {}

func (p *Markdown) paragraph(data []byte) int {}

func skipChar(data []byte, start int, char byte) int {}

func skipUntilChar(text []byte, start int, char byte) int {}

// SanitizedAnchorName returns a sanitized anchor name for the given text.
//
// It implements the algorithm specified in the package comment.
func SanitizedAnchorName(text string) string {}