Eliminate leaf text nodes on web
tomekzaw opened this issue · 0 comments
tomekzaw commented
Current Behavior
Currently we treat text that is not wrapped with markdown as a text node and line breaks as \n
, this makes the library prone to errors related with scrolling & cursor movement.
Expected Behavior
- All leaf text nodes should be wrapped by an individual tag
- We should use
<br>
instead of\n
- (optional) Each new paragraph / line of text should be wrapped with
<p>
tag