markdown: code-block is detected with 3 spaces
authorJean Privat <jean@pryen.org>
Tue, 3 Jun 2014 12:52:22 +0000 (08:52 -0400)
committerJean Privat <jean@pryen.org>
Tue, 3 Jun 2014 12:52:22 +0000 (08:52 -0400)
So a total of 4 including the space that follows the #

Signed-off-by: Jean Privat <jean@pryen.org>

src/markdown.nit

index f0a507d..ac80b99 100644 (file)
@@ -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