From 31ff0f7022628777b5397b2038dce346e564c6f2 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 3 Jun 2014 08:52:22 -0400 Subject: [PATCH] markdown: code-block is detected with 3 spaces So a total of 4 including the space that follows the # Signed-off-by: Jean Privat --- src/markdown.nit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/markdown.nit b/src/markdown.nit index f0a507d..ac80b99 100644 --- a/src/markdown.nit +++ b/src/markdown.nit @@ -68,7 +68,8 @@ private class Doc2Mdwn end # Is codeblock? Then just collect them - if indent >= 4 then + if indent >= 3 then + # to allows 4 spaces including the one that follows the # curblock.add(text) continue end -- 1.7.9.5