react-native-easy-markdown icon indicating copy to clipboard operation
react-native-easy-markdown copied to clipboard

Nested unordered lists are not rendered correctly

Open dbelchev opened this issue 8 years ago • 1 comments

I saw a problem with the rendering of nested unordered lists:

  1. Unordered list without nesting - rendered correctly: <Markdown> {"* Bullet 1\n* Bullet 2"} </Markdown> screen shot 2018-01-29 at 15 58 58

  2. Unordered list with nesting - not correct: <Markdown> {"* Parent Bullet\n * Nested Bullet"} </Markdown> screen shot 2018-01-29 at 15 59 54

Thank you!

dbelchev avatar Jan 29 '18 15:01 dbelchev

@dbelchev Thanks for submitting the issue! Originally this was a feature I decided I didn't need myself so did not put time into making it work. I think mainly the thought process was that markdown is not really the best for such complex structures anyway.

If it is something that you desperately need, I'm sure proper support for nested lists would be quite easy to implement in the code (see renderList and how the ordered parameter is passed into renderNodes -> a nested parameter could be passed similarly ). I would be happy to accept a PR for such a feature if you are interested in trying to implement it.

juiceo avatar Feb 13 '18 09:02 juiceo