This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Text.Pandoc.JSON | |
import Text.Parsec | |
import Control.Applicative | |
import Data.Monoid | |
main :: IO () | |
main = toJSONFilter index | |
index :: Maybe Format -> Inline -> [Inline] | |
index (Just (Format f)) c@(Code _ s) = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# pandoc-class2style.pl - filter to translate single span/div classes into LaTeX commands and attribute lists | |
# POD documentation below the code! | |
use utf8; | |
use autodie 2.29; | |
use 5.010001; | |
use strict; |