Warin / SublimeTidyHTML

Cleanup you html files with SublimeTidyHTML. Parse your files with W3C's tidy-html5 locally. No php required nor webservice call.
20 stars 4 forks source link

Should ignore <code> blocks. #9

Closed imaginator closed 11 years ago

imaginator commented 11 years ago

I am receiving the following error line 296 column 3 - Warning: discarding unexpected line 297 column 5 - Error: is not recognized! line 297 column 5 - Warning: discarding unexpected line 297 column 14 - Warning: discarding unexpected line 298 column 5 - Error: is not recognized!

on the following code:

<li><a>XML</a></li>
Retrieve all posts from "alice@example.com":
GET /alice@example.com/content/posts
<pre class="prettyprint">
<code class="xml">
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Alice's posts</title>
  <entry>
    <id>foo</id>
    <author>
      <name>alice@example.com</name> 
      <id>acct:alice@example.com</id>
    </author>
    <published>2012-06-01T12:00:00Z</published>
    <content>This is my newest post!</content>
  </entry>
  <entry>
    <id>bar</id>
    <author>
      <name>alice@example.com</name> 
      <id>acct:alice@example.com</id>
    </author>
    <published>2012-05-31T12:00:00Z</published>
    <content>June starts tomorrow.</content>
  </entry>
  <entry>
    <id>baz</id>
    <author>
      <name>alice@example.com</name> 
      <id>acct:alice@example.com</id>
    </author>
    <published>2012-05-30T12:00:00Z</published>
    <content>Feeling good today!</content>
  </entry>
</feed>
Warin commented 11 years ago

@imaginator since the functionnality is not implemented in W3C's tidy-html5. The best chance to have it in this plugin is to open an ticket over there.

Sorry that I can't help more.

imaginator commented 11 years ago

Oh that sucks. Do you have any ideas on how I could work around this?

imaginator commented 11 years ago

And thanks for getting back so quickly - TidyHTML works really well for all other files.

imaginator commented 11 years ago

Added an issue https://github.com/w3c/tidy-html5/issues/94

Warin commented 11 years ago

Thanks, Please reopen when you have an update over there