summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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