Skip to content

A pandoc filter which removes div block in "rmnote" class

License

Notifications You must be signed in to change notification settings

pandocker/removalnotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

removalnotes

A pandoc filter which removes div block in "rmnote" class

Install

Only considered to work with Python3.

  • pip3 install git+https://github.com/pandocker/removalnotes.git

Python2 may work but never tested.

  • pip install git+https://github.com/pandocker/removalnotes.git

Syntax

::::: rmnote
##### Note {-}

This is a note block. By the way this `:::` syntax is available from [pandoc 2.0](https://pandoc.org/MANUAL.html#divs-and-spans)

|  t   |  a   | ble |
|------|------|-----|
| hoge | piyo | foo |

:::::

<div class="rmnote">
##### Note {-}

This is another note block
</div>

::::: rmnote

Note {-}

This is a note block. By the way this ::: syntax is available from pandoc 2.0 :::::

##### Note {-}

This is another note block

  • pandoc -M rmnote=false ... keeps DIV block(default)
  • pandoc -M rmnote=true ... removes DIV block
  • YAML metadata file can contain rmnote entry

Issues

  • New ::: syntax does not work at end of file. Recommend to use <div class="rmnote">...</div> tags

License

MIT license (c) 2018 pandocker/Kazuki Yamamoto

About

A pandoc filter which removes div block in "rmnote" class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages