FIX: buggy unhoisting of escaped \*

This commit is contained in:
Sam
2014-12-23 18:25:10 +11:00
parent e959e7c9df
commit e23e008682
2 changed files with 39 additions and 8 deletions

View File

@ -298,4 +298,9 @@ describe PrettyText do
end
it 'can escape *' do
PrettyText.cook("***a***a").should match_html("<p><strong><em>a</em></strong>a</p>")
PrettyText.cook("***\\****a").should match_html("<p><strong><em>*</em></strong>a</p>")
end
end