Fix omission in list item flags When parseRefsToAST constructs a list of footnotes, it hardcoded the item flags to ListTypeOrdered and omitted ListItemBeginningOfList. However, a quick look around indicates that ListItemBeginningOfList might have lost its meaning altogether in v2 (it used to control item spacing in v1, which is now extracted from the AST structure). So add a TODO to clean that up one day.
Vytautas Ĺ altenis vytas@rtfb.lt
Sun, 28 Aug 2016 23:00:27 +0300
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
markdown.go
→
markdown.go
@@ -82,7 +82,7 @@ ListTypeDefinition
ListTypeTerm ListItemContainsBlock - ListItemBeginningOfList + ListItemBeginningOfList // TODO: figure out if this is of any use now ListItemEndOfList )@@ -428,7 +428,7 @@ // the fixed initial set.
for i := 0; i < len(p.notes); i++ { ref := p.notes[i] block := p.addBlock(Item, nil) - block.ListFlags = ListTypeOrdered + block.ListFlags = flags | ListTypeOrdered block.RefLink = ref.link if ref.hasBlock { flags |= ListItemContainsBlock