git.iko.soy/typeable/pandoc
on master help sign in
Process markdown extensions on command line in L->R order.

Previously they were processed, very unintuitively, in R->L order, so that `markdown-tex_math_dollars+tex_math_dollars` had `tex_math_dollars` disabled. Closes #2995.

commit69e59e7f293b6107b5b722f330ba8c4ffcf6bbe5 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 23 Jun 2016, 23:04 (10 years ago) parent7f4ee83
1 file changed+1−1
src/Text/Pandoc.hs+1−1
src/Text/Pandoc.hs+1−1
@@ -191,7 +191,7 @@ parseFormatSpec = parse formatSpec ""
191191 where formatSpec = do
192192 name <- formatName
193193 extMods <- many extMod
194− return (name, foldl (.) id extMods)
194+ return (name, \x -> foldl (flip ($)) x extMods)
195195 formatName = many1 $ noneOf "-+"
196196 extMod = do
197197 polarity <- oneOf "-+"