aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-01-14 17:08:56 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2013-01-14 17:08:56 -0800
commit0ef24d15188243aa7ad78c4ef65d6c6b8ed0a84e (patch)
treeb289292c5b64f861b8221d04330a109a7dd0ab7a
parent127851ea61ce3723caeed2bf0174e1977efc40cd (diff)
downloadpandoc-0ef24d15188243aa7ad78c4ef65d6c6b8ed0a84e.tar.gz
Added Ext_implicit_figures.
No code to hook this in yet.
-rw-r--r--README2
-rw-r--r--src/Text/Pandoc/Options.hs4
2 files changed, 3 insertions, 3 deletions
diff --git a/README b/README
index 1f43662ef..a3ac47b65 100644
--- a/README
+++ b/README
@@ -2150,7 +2150,7 @@ The link text will be used as the image's alt text:
### Pictures with captions ###
-**Extension**
+**Extension: `implicit_figures`**
An image occurring by itself in a paragraph will be rendered as
a figure with a caption.[^5] (In LaTeX, a figure environment will be
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs
index ae2afd6fc..e63b328a3 100644
--- a/src/Text/Pandoc/Options.hs
+++ b/src/Text/Pandoc/Options.hs
@@ -56,7 +56,7 @@ data Extension =
| Ext_pandoc_title_block -- ^ Pandoc title block
| Ext_mmd_title_block -- ^ Multimarkdown metadata block
| Ext_table_captions -- ^ Pandoc-style table captions
- -- | Ext_image_captions
+ | Ext_implicit_figures -- ^ A paragraph with just an image is a figure
| Ext_simple_tables -- ^ Pandoc-style simple tables
| Ext_multiline_tables -- ^ Pandoc-style multiline tables
| Ext_grid_tables -- ^ Grid tables (pandoc, reST)
@@ -104,7 +104,7 @@ pandocExtensions = Set.fromList
, Ext_inline_notes
, Ext_pandoc_title_block
, Ext_table_captions
- -- , Ext_image_captions
+ , Ext_implicit_figures
, Ext_simple_tables
, Ext_multiline_tables
, Ext_grid_tables