Skip to content

Create subfigures in pandoc's markdown with the aid of this Lua filter.

License

Notifications You must be signed in to change notification settings

rnwst/pandoc-subfigs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandoc-subfigs

pandoc-subfigs enables subfigures to be created in pandoc's markdown.

Usage

To run the Lua filter, place the filter in a location accessible to pandoc and execute pandoc with the option --lua-filter=pandoc-subfigs.lua.

To create subfigures, place the subfigures in a Div of class subfigs. The first paragraph found in the Div is used as the figure's caption. Using the fenced_divs extension (which is enabled by default):

:::subfigs
The figure caption.

![Subfigure 1 caption.](figs/subfig1.png){#subfig1}

![Subfigure 2 caption.](figs/subfig2.jpg){#subfig2}
:::

Alternatively, according to preference, the figure caption may be placed at the bottom of the Div (as long as it is still the first paragraph in the Div).

About

Create subfigures in pandoc's markdown with the aid of this Lua filter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages