MCPcopy
hub / github.com/russross/blackfriday / dliPrefix

Method dliPrefix

block.go:1111–1124  ·  view source on GitHub ↗

returns definition list item prefix

(data []byte)

Source from the content-addressed store, hash-verified

1109
1110// returns definition list item prefix
1111func (p *Markdown) dliPrefix(data []byte) int {
1112 if len(data) < 2 {
1113 return 0
1114 }
1115 i := 0
1116 // need a ':' followed by a space or a tab
1117 if data[i] != ':' || !(data[i+1] == ' ' || data[i+1] == '\t') {
1118 return 0
1119 }
1120 for i < len(data) && data[i] == ' ' {
1121 i++
1122 }
1123 return i + 2
1124}
1125
1126// parse ordered or unordered list block
1127func (p *Markdown) list(data []byte, flags ListType) int {

Callers 4

blockMethod · 0.95
listTypeChangedMethod · 0.95
listItemMethod · 0.95
paragraphMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected