Last active
August 29, 2015 14:21
-
-
Save balaam/64f5d727cf0ce8b8918d to your computer and use it in GitHub Desktop.
Hackery for pandoc
This file contains hidden or 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
| s = "\\" | |
| s = string.gsub(s, "!%[(.-)]%s*%((.-)%)%s*\\", | |
| function(comment, path) | |
| local ret = "\\\n\\begin{center} \\emph{%s} \\end{center}\n\n" | |
| return string.format(ret, comment, path, comment) | |
| end) | |
| print(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment