Commonmark writer: allow ')' delimiters on ordered lists.
This commit is contained in:
parent
51f6f0e3a1
commit
36807db531
1 changed files with 6 additions and 1 deletions
|
@ -588,7 +588,12 @@ blockToMarkdown' opts (OrderedList (start,sty,delim) items) = do
|
|||
then start
|
||||
else 1
|
||||
let sty' = if isEnabled Ext_fancy_lists opts then sty else DefaultStyle
|
||||
let delim' = if isEnabled Ext_fancy_lists opts then delim else DefaultDelim
|
||||
let delim' = if isEnabled Ext_fancy_lists opts
|
||||
then delim
|
||||
else if variant == Commonmark &&
|
||||
(delim == OneParen || delim == TwoParens)
|
||||
then OneParen -- commonmark only supports one paren
|
||||
else DefaultDelim
|
||||
let attribs = (start', sty', delim')
|
||||
let markers = orderedListMarkers attribs
|
||||
let markers' = map (\m -> if T.length m < 3
|
||||
|
|
Loading…
Reference in a new issue