src: introduce new constructors
[nit.git] / src / markdown.nit
index f0a507d..90cb227 100644 (file)
@@ -15,9 +15,9 @@
 # Transform Nit verbatim documentation into HTML
 module markdown
 
-import parser
+private import parser
 import html
-import highlight
+private import highlight
 
 # The class that does the convertion from a `ADoc` to HTML
 private class Doc2Mdwn
@@ -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