summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-17 14:28:53 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-17 14:28:53 -0800
commit01cb5c9563cc257e14a0093843d87621563d961f (patch)
tree6b53401cef0dca299fa1b9e3b437a7669fe96c12 /src/iterator.c
parent1f8ea828409287b7901bf32d01f8ec662ffdc9ba (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 'src/iterator.c')
0 files changed, 0 insertions, 0 deletions