mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: buggy unhoisting of escaped \*
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user