tidy up, get citations by URL
This commit is contained in:
parent
f0eba54ace
commit
45a0f340b6
12 changed files with 294 additions and 27 deletions
12
paper/bin/code-filter.py
Executable file
12
paper/bin/code-filter.py
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
import sys
|
||||
|
||||
from pandocfilters import toJSONFilter, RawBlock
|
||||
|
||||
def toMiniREPL(key, value, format, meta):
|
||||
# print(value, file=sys.stderr)
|
||||
if key == 'CodeBlock':
|
||||
return RawBlock("markdown", "<MiniRepl tune={`" + value[1] + "`} />")
|
||||
|
||||
if __name__ == "__main__":
|
||||
toJSONFilter(toMiniREPL)
|
||||
Loading…
Add table
Add a link
Reference in a new issue