Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Escape blockquotes

  • Loading branch information...
commit 0fc20495eb28c5e49cd7df9575522ce09cdeb545 1 parent b75690a
@rwstauner authored
Showing with 6 additions and 8 deletions.
  1. +2 −4 lib/Pod/Markdown.pm
  2. +4 −4 t/misc.t
View
6 lib/Pod/Markdown.pm
@@ -84,13 +84,11 @@ sub _clean_text {
sub _escape {
local $_ = $_[1];
- # FIXME: don't escape chars inside C<> blocks
-
# do inline characters first
s/([][\\`*_#])/\\$1/g;
- # escape unordered lists
- s/^([-+*])/\\$1/mg;
+ # escape unordered lists and blockquotes
+ s/^([-+*>])/\\$1/mg;
# escape dots that would wrongfully create numbered lists
s/^( (?:>\s+)? \d+ ) (\.\x20)/$1\\$2/xgm;
View
8 t/misc.t
@@ -91,10 +91,10 @@ lists:
\# fake headings
\#\#\# fake headings \#\#\#
-> Quote
-> blocks
-> 1\. with
-> 2\. lists
+\> Quote
+\> blocks
+\> 1. with
+\> 2. lists
1996\. A year.
Please sign in to comment.
Something went wrong with that request. Please try again.