Multiple paragraphs inside of a list item
-
Note: I’ve ’embraced’ the html tags below in single quotes instead of angle brackets to avoid throwing off the format of this post.
I checked and what I am trying to do both works in HTML, and is perfectly acceptable according to the HTML5 spec.
Inside my ‘li’ tag, I sometimes wax on and require multiple paragraphs of text within the single list item. I am having problems with the wordpress editor stripping out the ‘p’ tags. In the editor, it appears that, since the paragraph ‘p’ tag is the default and is, therefore, implicit (not shown in Text view).
If I insert them in the text view, they don’t hold.
I’ve tried ‘br /’ tags both within and without ‘p’ tags, putting the ‘p’ tags inside of a ‘div’, but there seems to be no reliable way to have paragraphs within ‘li’ tags. This is quite common in list items and one should not assume that lists are always made up of single lines per bulleted item.
Again this is entirely acceptable in HTML and works perfectly within pure HTML.
This issue has been posted before, but I cannot find a resolution in the earlier posts. Is this a real limitation of wordpress?
Perhaps, when designing the wordpress editor, someone tried to simplify things by hiding ‘p’ tags.
Is this a case of making things too simple, thereby making it impossible to maintain multiple paragraphs within a list item?
Pressing ‘Ctrl + Enter’ in the visual editor does indeed move the paragraph down without inserting a new bullet, but it does not hold, I guess because, since the ‘p’ tags are not embedded, but are implicit, html ignores the extra white space. Perhaps the ‘p’ tags should be shown in text view in the editor. For proper formatting HTML requires the ‘p’ tags !!!
Any help you can shed on this issue will be appreciated.
- The topic ‘Multiple paragraphs inside of a list item’ is closed to new replies.