Ink
Ink copied to clipboard
Fix formatting of indented lists
When parsing a list which is indented the parser needs to take into account the indentation of the first element otherwise it will it consider subsequent elements to be part of another list internal to the original list ie previously
- first
- second
- third
produces HTML
<ul><li>One<ul><li>Two</li><li>Three</li></ul></li></ul>
With this fix it now produces
<ul><li>One</li><li>Two</li><li>Three</li></ul>
I don't understand why this pull request is still pending two years later, unacknowledged. Has this project been abandoned?
It's even worse when it's a piece of functionality the README claims the library can do.
Nested lists are supported as well, by indenting any part of a list that should be nested within its parent.
I haven't received comment on any of my Ink PRs so I've kinda of given up on them.