Don't modify content inside <pre> tags during rendering.

This commit is contained in:
rick
2010-12-02 19:28:31 -08:00
parent 280afb42ea
commit d32ab724d3
3 changed files with 54 additions and 3 deletions
+10
View File
@@ -50,6 +50,16 @@ context "Markup" do
assert yielded
end
test "does not modify content in pre tags" do
@wiki.write_page("Pre", :markdown,
"abc [[a]]\n\n<pre > [[b]] </pre>\n\n``` ruby\n[[c]]\n```\n[[d]]",
commit_details)
page = @wiki.page("Pre")
html = page.formatted_data
assert html['[[b]]']
assert html[%([[</span><span class="n">c)]
end
#########################################################################
#
# Links