aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2014-02-02 13:07:30 -0500
committerWaylan Limberg <waylan@gmail.com>2014-02-02 13:07:30 -0500
commit6531915524d7814aca52668659c4ebdfb50b922b (patch)
tree696243b71c8ebf8f8044b5afe94c35baef8c2dd9
parentbdf7bf290ad72d0fc70612c8c0ca614c4d5939bb (diff)
downloadmarkdown-6531915524d7814aca52668659c4ebdfb50b922b.tar.gz
markdown-6531915524d7814aca52668659c4ebdfb50b922b.tar.bz2
markdown-6531915524d7814aca52668659c4ebdfb50b922b.zip
No longer restrict INLUNE_PLACEHOLDER to 4 digits.
This was limiting the parser to only 10,000 placeholders (0-9999) per document. removing this limitation allows longer documents ot be parsered correctly. Fixes #255.
-rw-r--r--markdown/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/util.py b/markdown/util.py
index 8c2e6d7..882c413 100644
--- a/markdown/util.py
+++ b/markdown/util.py
@@ -36,7 +36,7 @@ STX = '\u0002' # Use STX ("Start of text") for start-of-placeholder
ETX = '\u0003' # Use ETX ("End of text") for end-of-placeholder
INLINE_PLACEHOLDER_PREFIX = STX+"klzzwxh:"
INLINE_PLACEHOLDER = INLINE_PLACEHOLDER_PREFIX + "%s" + ETX
-INLINE_PLACEHOLDER_RE = re.compile(INLINE_PLACEHOLDER % r'([0-9]{4})')
+INLINE_PLACEHOLDER_RE = re.compile(INLINE_PLACEHOLDER % r'([0-9]+)')
AMP_SUBSTITUTE = STX+"amp"+ETX
HTML_PLACEHOLDER = STX + "wzxhzdk:%s" + ETX
HTML_PLACEHOLDER_RE = re.compile(HTML_PLACEHOLDER % r'([0-9]+)')