]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/bugs/escaped_style_tag_becomes_elyts.mdwn
(no commit message)
[git.ikiwiki.info.git] / doc / bugs / escaped_style_tag_becomes_elyts.mdwn
index b7aa659af2e493cc014e41ed8e53016234527ae9..336e2ff953654e6b16c1bb70e3b7ae234ef80705 100644 (file)
@@ -15,8 +15,10 @@ or use indentation like
     <style type="text/css">...</style>
 </code></pre>
 
-then that gets turned into `&lt;elyts` in the HTML too. This makes it quite
-difficult to talk about HTML on an IkiWiki instance (I had to use raw HTML in
+then that gets turned into `<elyts` in the source before passing through
+`markdown`, comes out as `&lt;elyts` in the output HTML, and is rendered
+as `<elyts` by the browser. This makes it quite difficult to talk about
+HTML stylesheet markup on an IkiWiki instance (I had to use raw HTML in
 this bug report's source to avoid the bug).
 
 I think the side-effect of the workaround is more damaging than the actual bug
@@ -26,3 +28,7 @@ discuss style markup several times. The first couple of times I saw this happen,
 I thought it was some sort of misguided anti-cross-site-scripting filter...
 
 --[[smcv]]
+
+> [[Fixed|done]] by passing the `MKD_NOSTYLE` flag to Discount instead.
+> Unfortunately this isn't bound by [[!cpan Text::Markdown::Discount]] yet,
+> so for now I'm hard-coding its numeric value. --[[smcv]]