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

var urlRe

var anchorRe

var htmlEntityRe

func (p *Markdown) inline(currBlock *Node, data []byte) {}

// single and double emphasis parsing
func emphasis(p *Markdown, data []byte, offset int) (int, *Node) {}

func codeSpan(p *Markdown, data []byte, offset int) (int, *Node) {}

// newline preceded by two spaces becomes <br>
func maybeLineBreak(p *Markdown, data []byte, offset int) (int, *Node) {}

// newline without two spaces works when HardLineBreak is enabled
func lineBreak(p *Markdown, data []byte, offset int) (int, *Node) {}

type linkType

const linkNormal

const linkImg

const linkDeferredFootnote

const linkInlineFootnote

func isReferenceStyleLink(data []byte, pos int, t linkType) bool {}

func maybeImage(p *Markdown, data []byte, offset int) (int, *Node) {}

func maybeInlineFootnote(p *Markdown, data []byte, offset int) (int, *Node) {}

// '[': parse a link or an image or a footnote
func link(p *Markdown, data []byte, offset int) (int, *Node) {}

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

func stripMailto(link []byte) []byte {}

type autolinkType

const notAutolink

const normalAutolink

const emailAutolink

// '<' when tags or autolinks are allowed
func leftAngle(p *Markdown, data []byte, offset int) (int, *Node) {}

var escapeChars

func escape(p *Markdown, data []byte, offset int) (int, *Node) {}

func unescapeText(ob *bytes.Buffer, src []byte) {}

// '&' escaped when it doesn't belong to an entity
// valid entities are assumed to be anything matching &#?[A-Za-z0-9]+;
func entity(p *Markdown, data []byte, offset int) (int, *Node) {}

func linkEndsWithEntity(data []byte, linkEnd int) bool {}

// hasPrefixCaseInsensitive is a custom implementation of
//     strings.HasPrefix(strings.ToLower(s), prefix)
// we rolled our own because ToLower pulls in a huge machinery of lowercasing
// anything from Unicode and that's very slow. Since this func will only be
// used on ASCII protocol prefixes, we can take shortcuts.
func hasPrefixCaseInsensitive(s, prefix []byte) bool {}

var protocolPrefixes

const shortestPrefix

func maybeAutoLink(p *Markdown, data []byte, offset int) (int, *Node) {}

func autoLink(p *Markdown, data []byte, offset int) (int, *Node) {}

func isEndOfLink(char byte) bool {}

var validUris

var validPaths

func isSafeLink(link []byte) bool {}

// return the length of the given tag, or 0 is it's not valid
func tagLength(data []byte) (autolink autolinkType, end int) {}

// look for the address part of a mail autolink and '>'
// this is less strict than the original markdown e-mail address matching
func isMailtoAutoLink(data []byte) int {}

// look for the next emph char, skipping other constructs
func helperFindEmphChar(data []byte, c byte) int {}

func helperEmphasis(p *Markdown, data []byte, c byte) (int, *Node) {}

func helperDoubleEmphasis(p *Markdown, data []byte, c byte) (int, *Node) {}

func helperTripleEmphasis(p *Markdown, data []byte, offset int, c byte) (int, *Node) {}

func text(s []byte) *Node {}

func normalizeURI(s []byte) []byte {}