diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-06-22 12:26:55 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-06-23 09:57:58 -0700 |
commit | dbfe3fae72eef02f0689f7e5962ca04a8d395c21 (patch) | |
tree | 8fbb85cd0286425c73f283ed19e682d555308b5a /src/latex.c | |
parent | cf3ae36b3479a563f98780352e9fd9cf1c1cff81 (diff) |
Ported robinst's changes to link parsing.
See https://github.com/jgm/commonmark.js/pull/101
This uses a separate stack for brackets, instead of
putting them on the delimiter stack. This avoids the
need for looking through the delimiter stack for the next
bracket.
It also avoids a shortcut reference lookup when the reference
text contains brackets.
The change dramatically improved performance on the nested links
pathological test for commonmark.js. It has a smaller but measurable
effect here.
Diffstat (limited to 'src/latex.c')
0 files changed, 0 insertions, 0 deletions