You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Over at https://github.com/Glavin001/atom-beautify/ we went round and round trying to find out why atom-beautify was wrapping some elements and http://jsbeautifier.org/ was not. It turns out that your default code has an unformatted option that defaults to not formatting the "inline" elements --- but it's not made explicit what these inline elements are, so we have to dig into the code.
That's when @Glavin001 figured out that you're using these elements as the default list of inline elements:
The first one missing that comes to mind is <mark>. If you leave that out, then you'll wind up wrapping inside of paragraphs, or just in a single list item.
So please revisit your list of "inline" elements and make sure that all HTML5 inline elements are included. Thanks.
The text was updated successfully, but these errors were encountered:
garretwilson
changed the title
list of HTML inline elements incomple; wraps inappropriately
list of HTML inline elements incomplete; wraps inappropriately
Jan 14, 2016
Over at https://github.com/Glavin001/atom-beautify/ we went round and round trying to find out why atom-beautify was wrapping some elements and http://jsbeautifier.org/ was not. It turns out that your default code has an
unformatted
option that defaults to not formatting the "inline" elements --- but it's not made explicit what these inline elements are, so we have to dig into the code.That's when @Glavin001 figured out that you're using these elements as the default list of inline elements:
https://github.com/beautify-web/js-beautify/blob/bc5b7b5a3310df19cfe44489f3d0731d0c9b49cf/js/lib/beautify-html.js#L120-L122
Then I realized that this list is incomplete. You don't seem to include all HTML5 inline elements, such as those at:
http://www.w3.org/TR/html5/text-level-semantics.html#text-level-semantics
The first one missing that comes to mind is
<mark>
. If you leave that out, then you'll wind up wrapping inside of paragraphs, or just in a single list item.So please revisit your list of "inline" elements and make sure that all HTML5 inline elements are included. Thanks.
The text was updated successfully, but these errors were encountered: