test/parser_test.rb in trac-wiki-0.3.13 vs test/parser_test.rb in trac-wiki-0.3.14
- old
+ new
@@ -1043,9 +1043,10 @@
tc "<p><a href=\"#here\">Here</a></p>\n", "[[#here|Here]]"
tc "<p><a href=\"#here+i+m\">Here</a></p>\n", "[[#here i m|Here]]"
tc "<p><a href=\"there#i+m\">There</a></p>\n", "[[there#i m|There]]"
tc "<p><a href=\"http://example.com/there#i+m\">There</a></p>\n", "[[there#i m|There]]", base: 'http://example.com/'
tc "<p><a href=\"#here+i+m\">Here</a></p>\n", "[[#here i m|Here]]", base: 'http://example.com/'
+ tc "<p><a href=\"#here+i+m\">He<strong>r</strong>e</a></p>\n", "[[#here i m|He**r**e]]"
end
it 'should parse dnl inside macro' do
tc "<p>d<blockquote>e</blockquote></p>\n", "{{!ifeq a|b|c|d\n e}}"
tc "<p>de</p>\n", "{{!ifeq a|b|c|d\\\n e}}"
tc "<p>d<strong>e</strong></p>\n", "{{!ifeq a|b|c|d**\\\ne**}}"