Merge: nitunit: use the Markdown parser from `lib/markdown`
authorJean Privat <jean@pryen.org>
Fri, 12 Jun 2015 02:36:11 +0000 (22:36 -0400)
committerJean Privat <jean@pryen.org>
Fri, 12 Jun 2015 02:36:11 +0000 (22:36 -0400)
commit52ef6229c32b6c16652dd6b933859834e2992295
tree6ab4daab60f606aadb11a9077b3e3e003b19fb39
parent0986e2719f39f90601508b8cb0d6bb3dc1a5fb33
parentfa7e555f02fdda5b2292f9a749335fda1020b9e2
Merge: nitunit: use the Markdown parser from `lib/markdown`

Since the introduction of `nitmd`, `nitunit` was still using the old `docdown` parser.
This PR do the migration.

There will be a lot of unrecognized tests since the old paerser allowed between four and five spaces before a nitunit, the new one enforce the rule of 5 (couting the space after the `#` comment token).

Before:
~~~nit
#    assert true
~~~
Was recognized as nitunit, but if you ignore the `# ` string as prefix of each comment, there is only 3 spaces before the nitunit.

After:
~~~nit
#     assert true
~~~
We need 4 spaces before the nitunit plus the `# ` prefix, this gives us 5 spaces.

Note, this is already the behavior followed by Nitdoc.

Should fix #1331

Pull-Request: #1332
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
lib/ini.nit
lib/neo4j/neo4j.nit
lib/standard/file.nit