agelessdummy / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 1 forks source link

Valid HTML tags in uppercase included as escaped HTML code in generated wiki pages #372

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I have a wiki page, a table. Inside a table cell I have two lines of text. 
After invoking :VimwikiAll2HTML I am noticing that <br> in my wiki text gets 
processed correctly, while <BR> or <BR /> don't - I see "foo <BR> bar" and "foo 
<BR /> bar" in that table cell in the resulting HTML file.

What version of the product are you using?

vimwiki-2-0-1
vim-7.3.154

On what operating system?

Slackware64-13.37

Please provide any additional information below.

I see two scenarios here:

1. Since HTML is case insensitive and some people have a habit of writing HTML 
tags in uppercase (myself included, that's how I found this bug) - explicitly 
mention in the vimwiki documentation for g:vimwiki_valid_html_tags that the 
tags MUST be used in vimwiki pages in lowercase. It becomes a bit harder when 
third party big chunks of HTML code would be pasted into vimwiki, but at least 
the user will be warned by the documentation that he must process those chunks 
and manually convert the tags to lowercase.

2. Modify vimwiki to process properly the tags in uppercase. I understand this 
would require more work and personally I am happy with first scenario, since 
having the described behavior explicitly documented will mean we can treat it 
as a feature, not as a bug :-)

Original issue reported on code.google.com by rwxrwx.m...@tut.by on 2 Sep 2012 at 3:34

GoogleCodeExporter commented 8 years ago
Thanks!  Sorry for the delay.  Case-insensitivity added, and noted in docs, in 
r2081151c0035

Original comment by stu.andrews on 31 Dec 2012 at 4:22