mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Require a space after : for definition list
This commit is contained in:
parent
032792ae55
commit
9313a1c188
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ func NewDefinitionDescriptionParser() parser.BlockParser {
|
|||
func (b *definitionDescriptionParser) Open(parent gast.Node, reader text.Reader, pc parser.Context) (gast.Node, parser.State) {
|
||||
line, _ := reader.PeekLine()
|
||||
pos := pc.BlockOffset()
|
||||
if line[pos] != ':' {
|
||||
if line[pos] != ':' || len(line) <= pos || line[pos+1] != ' ' {
|
||||
return nil, parser.NoChildren
|
||||
}
|
||||
list, _ := parent.(*ast.DefinitionList)
|
||||
|
|
|
|||
Loading…
Reference in a new issue