aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-02-23 03:34:22 +0000
committerWaylan Limberg <waylan@gmail.com>2008-02-23 03:34:22 +0000
commit67053db8986d6b8593be9ce59ed9534269adfba8 (patch)
tree8e1aab3b51e53303e766b6f647fe43ef5ef3d411 /markdown.py
parent17c3abd88e11ae4cca4f1e3b49967c165edb94e5 (diff)
downloadmarkdown-67053db8986d6b8593be9ce59ed9534269adfba8.tar.gz
markdown-67053db8986d6b8593be9ce59ed9534269adfba8.tar.bz2
markdown-67053db8986d6b8593be9ce59ed9534269adfba8.zip
Allow one or two spaces before a blockquote. Fixes [1899925]
That report actually askes for three spaces in imitation of markdown.pl. However, the syntax rules overrule markdown.pl (even per J.G.) and the rules give no such allowance for any spaces. Such spaces have been a subject of debate on the list as well. As it turns out, in python-markdown, allowing 3 spaces creates some problems for nested blockquotes (i.e.: a codeblock in a blockquote would need to be indented 5 spaces rather than 4.) Since we can't be breaking that currently correct and expected behavior, I'll conceed and allow 2. After all, markdown is supposed to be easier for humans to read and edit. One or two spaces are not so easy for the human eye to detect, so we'll allow them. Three looks much more like 4, so I don't care that we don't allow that many.
Diffstat (limited to 'markdown.py')
-rw-r--r--markdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py
index 1c6587b..b0ceacf 100644
--- a/markdown.py
+++ b/markdown.py
@@ -1130,7 +1130,7 @@ class CorePatterns:
'isline2': r'(\-*)', # ---
'isline3': r'(\_*)', # ___
'tabbed': r'((\t)|( ))(.*)', # an indented line
- 'quoted': r'> ?(.*)', # a quoted block ("> ...")
+ 'quoted': r'[ ]{0,2}> ?(.*)', # a quoted block ("> ...")
}
def __init__ (self):