diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-17 14:28:53 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-17 14:28:53 -0800 |
commit | 01cb5c9563cc257e14a0093843d87621563d961f (patch) | |
tree | 6b53401cef0dca299fa1b9e3b437a7669fe96c12 /test/afl_dictionary/string_brackets | |
parent | 1f8ea828409287b7901bf32d01f8ec662ffdc9ba (diff) |
Improved escaping in commonmark renderer.
We try not to escape punctuation unless we absolutely have
to. So, `)` and `.` are no longer escaped whenever they
occur after digits; now they are only escaped if they are
geuninely in a position where they'd cause a list item.
This required a couple changes to render.c.
- `renderer->begin_content` is only set to false AFTER a
string of digits at the beginning of the line. (This is
slightly unprincipled.)
- We never break before a numeral (also slightly unprincipled).
Diffstat (limited to 'test/afl_dictionary/string_brackets')
0 files changed, 0 insertions, 0 deletions