git.iko.soy/typeable/pandoc
on master help sign in
Fixed list-style-type for numbered example lists.

Should be "decimal," not "example." Closes #1902.

commit82c04a28cee407b0fcf56224b6c63d014e2c1c39 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 27 Jan 2015, 16:56 (12 years ago) parent4e03796
1 file changed+3−1
src/Text/Pandoc/Writers/HTML.hs+3−1
src/Text/Pandoc/Writers/HTML.hs+3−1
@@ -525,7 +525,9 @@ blockToHtml opts (BulletList lst) = do
525525 return $ unordList opts contents
526526blockToHtml opts (OrderedList (startnum, numstyle, _) lst) = do
527527 contents <- mapM (blockListToHtml opts) lst
528− let numstyle' = camelCaseToHyphenated $ show numstyle
528+ let numstyle' = case numstyle of
529+ Example -> "decimal"
530+ _ -> camelCaseToHyphenated $ show numstyle
529531 let attribs = (if startnum /= 1
530532 then [A.start $ toValue startnum]
531533 else []) ++