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 /tests/Tests/Readers | |
parent | 3876b91448ad8d279f5d5a9d217e00cf4583e14b (diff) |
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 'tests/Tests/Readers')
-rw-r--r-- | tests/Tests/Readers/Markdown.hs | 3 | ||||
-rw-r--r-- | tests/Tests/Readers/Org.hs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/Tests/Readers/Markdown.hs b/tests/Tests/Readers/Markdown.hs index 3bc8f34ae..ff68b4d3f 100644 --- a/tests/Tests/Readers/Markdown.hs +++ b/tests/Tests/Readers/Markdown.hs @@ -12,7 +12,8 @@ markdown :: String -> Pandoc markdown = purely $ readMarkdown def markdownSmart :: String -> Pandoc -markdownSmart = purely $ readMarkdown def { readerSmart = True } +markdownSmart = purely $ readMarkdown def { readerExtensions = + enableExtension Ext_smart $ readerExtensions def } markdownCDL :: String -> Pandoc markdownCDL = purely $ readMarkdown def { readerExtensions = enableExtension diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs index 96a783045..ed29f1377 100644 --- a/tests/Tests/Readers/Org.hs +++ b/tests/Tests/Readers/Org.hs @@ -12,7 +12,8 @@ org :: String -> Pandoc org = purely $ readOrg def orgSmart :: String -> Pandoc -orgSmart = purely $ readOrg def { readerSmart = True } +orgSmart = purely $ readOrg def { readerExtensions = + enableExtension Ext_smart $ readerExtensions def } infix 4 =: (=:) :: ToString c |