Request: Lists (<ol> and <ul>) should align/indent properly
See original GitHub issueCurrently, react-native-htmlview treats bullets and numbers in ordered and unordered lists as simply additions to the beginning of list item strings (enclosed in <li></li>
tags). This results in improper alignment of multiline word-wrapped list items.
This is a request for properly left-aligned lists in this repo. In the meantime, are there any existing forks that have addressed this list alignment issue?
Example desired alignment:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:12
Top Results From Across the Web
proper indenting for ordered lists in html - css - Stack Overflow
Actually, the solution is pretty simple, just set ol {list-style-position: inside;}. And your numbers should "align to the left" like you ...
Read more >Consistent list indentation - CSS: Cascading Style Sheets | MDN
In Internet Explorer and Opera, the lists are indented by setting a left margin of 40 pixels on the <ul> element.
Read more >What is the way to keep list of elements straight in HTML file
Lists are automatically indented, by default & it is important to keep the list aligned according to the display preferences. In order to...
Read more >The Ultimate Guide to Bullet Points in HTML Email - Litmus
Adding bulleted lists in emails can be trickier than you think. ... </ li >. </ ul >. < ol style = "margin:0;...
Read more >Styling lists and links - W3C Wiki
Figure 7: Bullets are positioned to the left of the text. So, to align the bullets to the left you can now set...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have played around a bit with some possibilities. With the following
renderNode
method I can achieve an usable result @koesbong @sunweiyang @dann1609:Before:
After:
I don’t know why, but the list is endless growing without the second part:
Any ideas what is happening there @isilher and @ everybody?
@isilher I am also having the same issue as @dann1609 where I am getting an
Invariant Violation: Objects are not valid as a React child
error and this is on iOS.Here is my code:
Is there something I am missing?