soimort / pandoc-filters

Mort's pandoc filters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Pandoc filters

Resources:

Monkeydown

Monkeydown (or "Monkey Flavored Markdown") is an extension to the standard / pandoc markdown format, implemented as a pandoc filter.

jsinliner.py

A filter to enable inlining of raw HTML, CSS and JavaScript code in markdown.

Examples: (embed raw HTML/CSS/JavaScript in code blocks identified by :html, :css, :js respectively)

```:html
<div id="foo">
    <div id="bar">
        hello
    </div>
</div>
```

```:css
a {
    color: red;
}
```

```:js
{
    var po = document.createElement('script');
    po.type = 'text/javascript';
    po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(po, s);
}
```

includes.hs

A script that reads a markdown document, finds all the inline code blocks with attribute include, and replaces their contents with the contents of the file give.

From: http://pandoc.org/filters.html#include-files

About

Mort's pandoc filters

License:The Unlicense


Languages

Language:Python 73.1%Language:Haskell 26.9%