GoldCoastMedia / modx-html-beautify

MODx plugin and snippet to beautify and control HTML output.
http://www.goldcoastmedia.co.uk/tools/modx/xhtml-beautify/
5 stars 2 forks source link

What about HTML5 ? #5

Open Spheerys opened 11 years ago

Spheerys commented 11 years ago

Hi !

I now develop with HTML5 and XHTML Beautify don't consider the unecessary final slash for balise meta, link, img, br or hr

Do you think to make a "HTML5 Beautify" for MODx ? :)

exside commented 11 years ago

don't know if this is really necessary because XHTML syntax is valid in HTML5 and as a plus it's much "cleaner" in my opinion, so why not embrace the strictness of XHTML when writing HTML5?

Spheerys commented 11 years ago

The problem with the new autorized syntax with HTML5, is the result after XHTML Beautify is "broken" because the absence of the final slash on several balises... Just have a try with ,
or and you will see :)

gibbs commented 11 years ago

Accidentally closed this - apologies. At the moment it only works with XHTML (which you can use in HTML5 like exside pointed out). I need to make major improvements to this extension over the coming weeks so I will look into it then. I will keep this open until then :smile:

Spheerys commented 11 years ago

Yes good news ! I'm working on another html5 website and this improvement will be very nice :)

Spheerys commented 11 years ago

Any news about the HTML5 support ? I had desactivated the plugin because the indentation was worse than without :(

gibbs commented 11 years ago

I am waiting on htmLawed to get updated with HTML5 support (the dev said it would be released last week). Then I will be using that for v2 which shouldn't take too long to do.

Spheerys commented 11 years ago

oK super :)

degoya commented 9 years ago

how about html5 support? it's already been a while since the last active post here

Spheerys commented 5 years ago

up :)

gibbs commented 5 years ago

A pre-release is available at https://github.com/Gibbs/modx-html-beautify/releases/tag/v2.0.1. You can test this by downloading xhtmlbeautify-2.0.1.transport.zip and uploading it in the MODX package manager or uploading it to core/components.

This was a very quick job so experiment at your own risk :)

Please leave feedback at https://github.com/Gibbs/modx-html-beautify/issues

Spheerys commented 5 years ago

thanks ! I have openned 2 issues on your repository :)