Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karaken12/pandoc-filters-ruby
A small Ruby library to make creating Pandoc filters simpler.
https://github.com/karaken12/pandoc-filters-ruby
Last synced: 3 months ago
JSON representation
A small Ruby library to make creating Pandoc filters simpler.
- Host: GitHub
- URL: https://github.com/karaken12/pandoc-filters-ruby
- Owner: karaken12
- License: mit
- Created: 2015-07-06T12:56:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-03T00:00:20.000Z (about 8 years ago)
- Last Synced: 2024-05-12T22:42:40.800Z (6 months ago)
- Language: Ruby
- Size: 129 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pandoc Filter
A small Ruby library to make creating Pandoc filters simpler.This library is inspired by the similar [Python libray](https://github.com/jgm/pandocfilters).
## Installing
Get the [Ruby Gem](https://rubygems.org/gems/pandoc-filter) by running
`gem install pandoc-filter`.## Using Pandoc Filter
The basic method is to call `PandocFilter.filter` with a block containing
what you want to do with each AST element. To return a new Pandoc element,
use PandocElement to construct them.The best way to see this is to check out the
[examples](https://github.com/karaken12/pandoc-filters-ruby/tree/master/examples).