wikicloth icon indicating copy to clipboard operation
wikicloth copied to clipboard

Template vars are parsed inside pre tag

Open avtobiff opened this issue 9 years ago • 0 comments

It seems template vars are parsed inside <pre> tags. The resulting output contain HTML entities for the braces.

Failure: <nil> is not true.
test: template vars should not be parsed inside a pre tag(WikiClothTest)
test/wiki_cloth_test.rb:288:in `block in <class:WikiClothTest>'
     285:   test "template vars should not be parsed inside a pre tag" do
     286:     wiki = WikiCloth::Parser.new(:data => "<pre>{{{1}}}</pre>")
     287:     data = wiki.to_html
  => 288:     assert data =~ /\{\{\{1\}\}\}/
     289:   end
     290: 
     291:   test "[[ links ]] should not work inside pre tags" do

avtobiff avatar Oct 10 '15 20:10 avtobiff