Skip to content

Commit a073355

Browse files
committed
pandoc: add empty 'c' key
Older pandoc versions produce an error message in that case: pandoc: Error in $[2][0]: key "c" not present
1 parent 8ab1cc2 commit a073355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbsphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ def object_hook(obj):
10981098
obj['c'] = [{
10991099
't': 'Math',
11001100
'c': [
1101-
{'t': 'DisplayMath'},
1101+
{'t': 'DisplayMath', 'c': []},
11021102
# Special marker characters are removed below:
11031103
'\x0e:nowrap:\x0f\n\n' + obj['c'][1],
11041104
]

0 commit comments

Comments
 (0)