diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-01-14 18:27:06 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-25 17:07:42 +0100 |
commit | 6f8b967d98ea4270aa2492688fbcdfe8bad150b2 (patch) | |
tree | 96c4f2bcead8a4d24ab41aff9c318ff2a7637719 /src/Text/Pandoc/Readers/CommonMark.hs | |
parent | 3876b91448ad8d279f5d5a9d217e00cf4583e14b (diff) | |
download | pandoc-6f8b967d98ea4270aa2492688fbcdfe8bad150b2.tar.gz |
Removed readerSmart and the --smart option; added Ext_smart extension.
Now you will need to do
-f markdown+smart
instead of
-f markdown --smart
This change opens the way for writers, in addition to readers,
to be sensitive to +smart, but this change hasn't yet been made.
API change. Command-line option change.
Updated manual.
Diffstat (limited to 'src/Text/Pandoc/Readers/CommonMark.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/CommonMark.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/CommonMark.hs b/src/Text/Pandoc/Readers/CommonMark.hs index 38c54c8dc..b0bcbd580 100644 --- a/src/Text/Pandoc/Readers/CommonMark.hs +++ b/src/Text/Pandoc/Readers/CommonMark.hs @@ -43,7 +43,7 @@ import Text.Pandoc.Class (PandocMonad) readCommonMark :: PandocMonad m => ReaderOptions -> String -> m Pandoc readCommonMark opts s = return $ nodeToPandoc $ commonmarkToNode opts' $ pack s - where opts' = if readerSmart opts + where opts' = if extensionEnabled Ext_smart (readerExtensions opts) then [optNormalize, optSmart] else [optNormalize] |