From 7507117f150dd6d36835cf86ae0872b8af302af1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 2 Mar 2018 16:29:04 -0800 Subject: Make `Ext_raw_html` default for commonmark format. --- changelog | 12 +++++++----- src/Text/Pandoc/Extensions.hs | 2 ++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/changelog b/changelog index 9cf6b6193..cd60dc428 100644 --- a/changelog +++ b/changelog @@ -199,10 +199,12 @@ pandoc (2.1.2) + Determine image size for PDFs (#4322). + EMF Image size support (#4375, Andrew Pritchard). - * Text.Pandoc.Extensions: Add `Ext_styles` (Jesse Rosenthal, - API change). This will be used in the docx reader (defaulting to off) to - read pargraph and character styles not understood by pandoc (as divs and - spans, respectively). + * Text.Pandoc.Extensions: + + + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in + the docx reader (defaulting to off) to read pargraph and character + styles not understood by pandoc (as divs and spans, respectively). + + Made `Ext_raw_html` default for `commonmark` format. * Text.Pandoc.Parsing: @@ -1969,7 +1971,7 @@ pandoc (2.0) * HTML reader: parse a span with class `smallcaps` as `SmallCaps`. * LaTeX reader: - + + Implemented `\graphicspath` (#736). + Properly handle column prefixes/suffixes. For example, in `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}` diff --git a/src/Text/Pandoc/Extensions.hs b/src/Text/Pandoc/Extensions.hs index fe690713c..968476930 100644 --- a/src/Text/Pandoc/Extensions.hs +++ b/src/Text/Pandoc/Extensions.hs @@ -317,6 +317,8 @@ getDefaultExtensions "muse" = extensionsFromList Ext_auto_identifiers] getDefaultExtensions "plain" = plainExtensions getDefaultExtensions "gfm" = githubMarkdownExtensions +getDefaultExtensions "commonmark" = extensionsFromList + [Ext_raw_html] getDefaultExtensions "org" = extensionsFromList [Ext_citations, Ext_auto_identifiers] -- cgit v1.2.3