Why did I do this? See post.
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
--- | |
toc: true | |
... |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python | |
""" | |
Pandoc filter to allow interpolation of metadata fields | |
into a document. %{fields} will be replaced by the field's | |
value, assuming it is of the type MetaInlines or MetaString. | |
""" | |
import sys | |
from pandocfilters import toJSONFilter, attributes, Span, Str, Table |
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
[ | |
{ | |
"unMeta": { | |
"test": { | |
"c": [ | |
{ | |
"c": [ | |
[], | |
[ | |
{ |
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
[ | |
{ | |
"unMeta": { | |
"test": { | |
"c": [ | |
{ | |
"c": [ | |
[], | |
[ | |
{ |
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
[ | |
{ | |
"unMeta": { | |
"test": { | |
"c": [ | |
{ | |
"c": [ | |
[], | |
[ | |
{ |
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
*** correct.json 2016-03-04 09:02:52.000000000 -0500 | |
--- wrong.json 2016-03-04 09:22:15.000000000 -0500 | |
*************** | |
*** 392,398 **** | |
] | |
] | |
], | |
! "t": "Table" | |
} | |
] |
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 python | |
""" | |
Pandoc filter to allow interpolation of metadata fields | |
into a document. %{fields} will be replaced by the field's | |
value, assuming it is of the type MetaInlines or MetaString. | |
""" | |
import sys | |
from pandocfilters import toJSONFilter, attributes, Span, Str, Table |
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
$ diff -C 2 passes.gron fails.gron | |
*** passes.gron 2018-04-26 14:18:00.000000000 -0400 | |
--- fails.gron 2018-04-26 14:19:36.000000000 -0400 | |
*************** | |
*** 61,85 **** | |
json.meta.table.c[0].c[4][1][1][0].c[0].t = "Str"; | |
json.meta.table.c[0].c[4][1][1][0].t = "Plain"; | |
- json.meta.table.c[0].c[4][2] = []; | |
- json.meta.table.c[0].c[4][2][0] = []; | |
- json.meta.table.c[0].c[4][2][0][0] = {}; |