khajavi / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

mailto generated script become valid XHTML #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. [anonymous](mailto:anon(dot)nymous_@_anonymous(dot)com)  
2. generate html
3.

What is the expected output? What do you see instead?

The generated output is something like this:
<p>
<script>some javascript code</script>
<noscript>mailto....</noscript>
</p>

If this change to this, it will vaild XHTML(pass w3c validator):
<p>
<script>some javascript code</script></p>
<noscript><p>mailto....</p></noscript>

What version of the product are you using? On what operating system?
Latest version wich installed with cabal on a latest Ubuntu.

Please provide any additional information below.

Original issue reported on code.google.com by hellfire...@gmail.com on 3 Feb 2010 at 10:22

GoogleCodeExporter commented 9 years ago
I'm aware of the validation issue, but of course we can't assume the email link 
is
the only thing in the paragraph. One could reproduce the whole block-level 
element
(say, paragraph), but that would really complicate the writer, and make all the 
pages
larger, so I'm not inclined to do it.

If validation is important to you, use --email-obfuscation=none or --email-
obfuscation=references, and then you won't get the javascript.

Note that pandoc can't guarantee valid xhtml anyway, because markdown allows 
you 
to insert raw HTML, which may or may not validate...

Original comment by fiddloso...@gmail.com on 4 Feb 2010 at 12:20

GoogleCodeExporter commented 9 years ago

Original comment by fiddloso...@gmail.com on 12 Feb 2010 at 2:53