When converting the following wikitext to HTML (and also back to Wikitext) the
leading spaces beginning from the second line are stripped.
Steps to reproduce
Input:
<li> foo bar </li>
Output:
$ node bin/parse.js < example.wikitext [warn/dsr/inconsistent][enwiki/Main Page] DSR inconsistency: cs/s mismatch for node LI s: 4 ; cs 5 [..] <li> foo bar </li>
Back to wikitext:
<li> foo bar </li>
Expected outcome
Both the generated HTML and Wikitext preserve all leading spaces.
Actual outcome
Beginning from the second line one level of leading spaces is stripped.
More information
The same happens with dd tags, probably all tags which suppress both paragraph wrapping and indent-pre generation.
Tested with v0.11.0 and v0.12.0-a17 both JS and PHP implementations.