Commit 1edf415
committed
pandoc 3.8+, highlight-style - Use "none" string instead of null
Pandoc 3.8 changed optSyntaxHighlighting from HighlightMethod type to Text.
The old HighlightMethod FromJSON accepted null, but Text rejects it with:
"Aeson exception: Error in $: parsing Text failed, expected String, but encountered Null"
Pass "none" string instead of null when highlight-style: none is set.1 parent 8bd7018 commit 1edf415
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1755 | 1755 | | |
1756 | 1756 | | |
1757 | 1757 | | |
1758 | | - | |
| 1758 | + | |
1759 | 1759 | | |
1760 | | - | |
| 1760 | + | |
1761 | 1761 | | |
1762 | 1762 | | |
1763 | 1763 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments