Sublime Forum

Indentation with html5

#1

I don’t know if this might be a bug.

This is the code I have before indentation (html5 doctype):

    <ul>
          <li><a href="../docs/introduction.html">Introduction</a>
          <li><a href="../docs/options.html">Options</a>
          <li><a href="../docs/methods.html">Methods</a>
    </ul>    

And after indentation I get:

		<ul>
			<li><a href="../docs/introduction.html">Introduction</a>
				<li><a href="../docs/options.html">Options</a>
					<li><a href="../docs/methods.html">Methods</a>
		                        </ul>				

It seems ST2 has problems with open tags in html5 syntax

0 Likes

#2

I don’t think it’s a bug per se, but someone will have to write the parser to allow that type of weird open tags. It works fine for self-closing tags like and .
I couldn’t find any good sources about this part of the spec, could you provide me with some links? I don’t even know how to regex it.

0 Likes

#3

w3.org/TR/html-markup/li.html

0 Likes