From: Jean Privat Date: Thu, 10 Sep 2015 13:25:08 +0000 (-0400) Subject: markdown: escape the meta information of code block in html X-Git-Tag: v0.7.8~32^2~4 X-Git-Url: http://nitlanguage.org markdown: escape the meta information of code block in html Signed-off-by: Jean Privat --- diff --git a/lib/markdown/markdown.nit b/lib/markdown/markdown.nit index 613e1a4..b9e2f6a 100644 --- a/lib/markdown/markdown.nit +++ b/lib/markdown/markdown.nit @@ -758,8 +758,11 @@ class HTMLDecorator end redef fun add_code(v, block) do - if block isa BlockFence and block.meta != null then - v.add "
"
+		var meta = block.meta
+		if meta != null then
+			v.add "
"
 		else
 			v.add "
"
 		end