aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Extensions.hs
diff options
context:
space:
mode:
authorkaizhang91 <37954332+kaizhang91@users.noreply.github.com>2018-05-31 04:43:58 +0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-05-30 13:43:58 -0700
commit5a0e21b9928e0b08072d58484891cfa2573452c6 (patch)
treebf53b6c7cb878f9f17059e31069c20ad5eb7b1b5 /src/Text/Pandoc/Extensions.hs
parenta8e196685745fd0dc9b0c98362b453bf359effb4 (diff)
downloadpandoc-5a0e21b9928e0b08072d58484891cfa2573452c6.tar.gz
Clarify how Ext_east_asian_line_breaks extension works (API docs).
Note that it will not take effect when readers/writers are called as libraries (#4674).
Diffstat (limited to 'src/Text/Pandoc/Extensions.hs')
-rw-r--r--src/Text/Pandoc/Extensions.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Extensions.hs b/src/Text/Pandoc/Extensions.hs
index 5ccb7dffb..ab510d92d 100644
--- a/src/Text/Pandoc/Extensions.hs
+++ b/src/Text/Pandoc/Extensions.hs
@@ -101,7 +101,10 @@ data Extension =
-- and disallow laziness
| Ext_definition_lists -- ^ Definition lists as in pandoc, mmd, php
| Ext_east_asian_line_breaks -- ^ Newlines in paragraphs are ignored between
- -- East Asian wide characters
+ -- East Asian wide characters. Note: this extension
+ -- does not affect readers/writers directly; it causes
+ -- the eastAsianLineBreakFilter to be applied after
+ -- parsing, in Text.Pandoc.App.convertWithOpts.
| Ext_emoji -- ^ Support emoji like :smile:
| Ext_empty_paragraphs -- ^ Allow empty paragraphs
| Ext_epub_html_exts -- ^ Recognise the EPUB extended version of HTML