Open MarkLodato opened 12 years ago
I guess <p>
tag need a closing tag. And I think write HTML in a good style is better. No need to support those tags except some tags only have one tag without closing tag.
Closing optional tags is not universally considered "good style," and besides, the editor is not supposed to impose arbitrary style choices. It should simply interpret the specification correctly.
There is no way to detect is this omit close tag or other case. Suggestion?
It is a bit challenging, but I think you could probably cover the most common cases:
<p>
, the following start at the same level: <p>
, <ol>
, <ul>
, <dl>
, <div>
(and others, I think)<li>
closes the previous <li>
<dt>
or <dd>
closes the previous <dt>
or <dd>
<option>
closes the previous <option>
Thanks for suggestion. Looks possible but I can't give a promise.
My indentation is now borked if I close <li>
<ol>
<li>Item1</li>
<li>Item2</li>
</ol>
Many common tags in HTML5, such as
<p>
and<li>
, do not require a closing tag, but the current indent file cannot handle this case. For example,gets turned into