From 6f8b967d98ea4270aa2492688fbcdfe8bad150b2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 14 Jan 2017 18:27:06 +0100 Subject: 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. --- tests/Tests/Readers/Markdown.hs | 3 ++- tests/Tests/Readers/Org.hs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/Tests/Readers') 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 -- cgit v1.2.3