Skip to content

andros21/imagine

 
 

Repository files navigation

                                          \\\///
                                         / _  _ \
                                       (| (.)(.) |)
                .--------------------.OOOo--()--oOOO.-------------------.
                |                                                       |
                |        ____                          _                |
                |       /  _/____ ___   ____ _ ____ _ (_)____   ___     |
                |       / / / __ `__ \ / __ `// __ `// // __ \ / _ \    |
                |     _/ / / / / / / // /_/ // /_/ // // / / //  __/    |
                |    /___//_/ /_/ /_/ \__,_/ \__, //_//_/ /_/ \___/     |
                |                           /____/                      |
                |                                                       |
                '-------------------.oooO-------------------------------'
                                     (   )   Oooo.
                                      \ (    (   )
                                       \_)    ) /
                                             (_/

A pandoc filter to process codeblocks

ci cd tag

Imagine is a pandoc filter that will turn codeblocks tagged with certain classes into images

The following class are currently supported to render code blocks in images:

If not supported class is specified in the codeblock, by default imagine it replicates the codeblock and in case pandoc -t latex it converts it in a minted codeblock (syntax highlight on!)

Important

Refer to minted documentation for supported languages

Warning

Supported pandoc API versions 1.23

Examples

Languages

  • Python 76.6%
  • Just 12.8%
  • Open Policy Agent 10.6%