aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options/lazy_ol_off.html
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-11-17 22:43:02 -0500
committerWaylan Limberg <waylan@gmail.com>2011-11-17 22:43:02 -0500
commitef9a229ebeaf8173e9fd4e541de4d83e8678f649 (patch)
tree615040f2b9778eaac1544bc2c1b26e039c0fdc1c /tests/options/lazy_ol_off.html
parentc53307a4d555c04e97739fefe0cafc2e97d55328 (diff)
downloadmarkdown-ef9a229ebeaf8173e9fd4e541de4d83e8678f649.tar.gz
markdown-ef9a229ebeaf8173e9fd4e541de4d83e8678f649.tar.bz2
markdown-ef9a229ebeaf8173e9fd4e541de4d83e8678f649.zip
Fixed #47. Improved HRProccessor.\n\nPython's re module does not support atomic grouping, which was slowing the HR regex down if a long HR ended with a non HR char (casing the regex to backtrack). Therefore, we have to simulate atomic grouping. Fortunately, we only need to match end-of-line or end-of-string after the atomic group here, so it was an easy case to simulate. Just remove the '$' from the end of the regex and manualy check using m.end(). The run method was refactored while I was at it, saving us from running the regex twice for each HR.
Diffstat (limited to 'tests/options/lazy_ol_off.html')
0 files changed, 0 insertions, 0 deletions