mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
A \< at the end of the input is exactly the same as \<(space)
This commit is contained in:
+2
-1
@@ -1337,7 +1337,8 @@ text(MMIOT *f)
|
||||
case '\\': switch ( c = pull(f) ) {
|
||||
case '&': Qstring("&", f);
|
||||
break;
|
||||
case '<': if ( isspace(peek(f,1)) )
|
||||
case '<': c = peek(f,1);
|
||||
if ( (c == EOF) || isspace(c) )
|
||||
Qstring("<", f);
|
||||
else {
|
||||
/* Markdown.pl does not escape <[nonwhite]
|
||||
|
||||
@@ -12,5 +12,9 @@ try -fautolink 'autolink url with trailing \' \
|
||||
'http://a.com/\' \
|
||||
'<p><a href="http://a.com/\">http://a.com/\</a></p>'
|
||||
|
||||
|
||||
try 'backslashes before <text' '\<code>' '<p>\<code></p>'
|
||||
try 'backslashes before < (no text)' '\< ' '<p>< </p>'
|
||||
|
||||
summary $0
|
||||
exit $rc
|
||||
|
||||
Reference in New Issue
Block a user