Skip to content

Instantly share code, notes, and snippets.

View balachia's full-sized avatar

Tony Vashevko balachia

View GitHub Profile
@bpj
bpj / pandoc-code2raw.py
Last active October 30, 2016 23:34
Pandoc filter to insert arbitrary raw output markup as Code/CodeBlocks with an attribute raw=<outputformat>.
#!/usr/bin/env python
r"""Pandoc filter to insert arbitrary raw output markup
as Code/CodeBlocks with an attribute raw=<outputformat>.
Especially useful for inserting LaTeX code which pandoc will
otherwise mangle:
````{raw=latex}
\let\Begin\begin
@jcenters
jcenters / CriticMarkup.pl
Created April 23, 2014 05:05
A Perl parser for the CriticMarkup language.
#!/usr/bin/perl
# Critic Markup Processor
# Based on CriticMarkup by Gabe Weatherhead and Erik Hess.
# http://criticmarkup.com/
# Strips CriticMarkup tags and performs the appropriate substitutions:
# Addition {++ ++} - Removes tags surrounding the Addition text.
# Deletion {-- --} - Deletes the tags and the text.