git.iko.soy/typeable/pandoc
on master help sign in
Added Ext_implicit_figures.

No code to hook this in yet.

commit0ef24d15188243aa7ad78c4ef65d6c6b8ed0a84e authorJohn MacFarlane <jgm@berkeley.edu> dateMon 14 Jan 2013, 17:08 (14 years ago) parent127851e
2 files changed+3−3
README+1−1 src/Text/Pandoc/Options.hs+2−2
README+1−1
@@ -2150,7 +2150,7 @@ The link text will be used as the image's alt text:
21502150
21512151### Pictures with captions ###
21522152
2153−**Extension**
2153+**Extension: `implicit_figures`**
21542154
21552155An image occurring by itself in a paragraph will be rendered as
21562156a figure with a caption.[^5] (In LaTeX, a figure environment will be
src/Text/Pandoc/Options.hs+2−2
@@ -56,7 +56,7 @@ data Extension =
5656 | Ext_pandoc_title_block -- ^ Pandoc title block
5757 | Ext_mmd_title_block -- ^ Multimarkdown metadata block
5858 | Ext_table_captions -- ^ Pandoc-style table captions
59− -- | Ext_image_captions
59+ | Ext_implicit_figures -- ^ A paragraph with just an image is a figure
6060 | Ext_simple_tables -- ^ Pandoc-style simple tables
6161 | Ext_multiline_tables -- ^ Pandoc-style multiline tables
6262 | Ext_grid_tables -- ^ Grid tables (pandoc, reST)
@@ -104,7 +104,7 @@ pandocExtensions = Set.fromList
104104 , Ext_inline_notes
105105 , Ext_pandoc_title_block
106106 , Ext_table_captions
107− -- , Ext_image_captions
107+ , Ext_implicit_figures
108108 , Ext_simple_tables
109109 , Ext_multiline_tables
110110 , Ext_grid_tables