all repos — grayfriday @ efa77da18b0fa3413ebafb99ef6afad578ad6593

blackfriday fork with a few changes

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
commit

efa77da18b0fa3413ebafb99ef6afad578ad6593

parent

771cf410c86ff2b71af385dab0b5d89b1b5453e1

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M markdown.gomarkdown.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