Before replacing tags, ensure the SHA1 is not within preformatted content.

This commit is contained in:
Jonathan Roes
2012-05-12 17:29:23 -04:00
parent eb37b17486
commit f9899033aa
2 changed files with 26 additions and 13 deletions
+6
View File
@@ -189,6 +189,12 @@ context "Markup" do
assert_equal "<pre><code>sed -i '' 's/[[:space:]]*$//'\n</code></pre>", page.formatted_data
end
test "piped wiki link within code block" do
@wiki.write_page("Potato", :markdown, "`make a link [[home|sweet home]]`", commit_details)
page = @wiki.page("Potato")
assert_equal "<p><code>make a link [[home|sweet home]]</code></p>", page.formatted_data
end
#########################################################################
#
# Images