From: smcv Date: Sun, 5 Oct 2014 12:40:27 +0000 (-0400) Subject: new bug report X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/af94275af1c168bd51a620d9998ead93892cfd5d?hp=4a90553d7f34d7178beb96489a5b39a545c532ac new bug report --- diff --git a/doc/bugs/escaped_style_tag_becomes_elyts.mdwn b/doc/bugs/escaped_style_tag_becomes_elyts.mdwn new file mode 100644 index 000000000..24d8fbf7e --- /dev/null +++ b/doc/bugs/escaped_style_tag_becomes_elyts.mdwn @@ -0,0 +1,28 @@ +When IkiWiki uses discount to implement [[plugins/mdwn]] rendering, +there is a workaround for : + +
$t=~s/<style/<elyts/ig;
+my $r=Text::Markdown::Discount::markdown($t);
+$r=~s/<elyts/<style/ig;
+
+ +However, this workaround also applies to indented text or text in backticks: +if you write there is a bug involving the `<style>` tag, +or use indentation like + +
you can use this markup:
+
+    <style type="text/css">...</style>
+
+ +then that gets turned into `<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 +this bug report's source to avoid the bug). + +I think the side-effect of the workaround is more damaging than the actual bug +being worked around: I've never wanted to write inline style tags in the body of +a Markdown page (which isn't even valid HTML) but I have certainly wanted to +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]]