Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to force HTML5 doctype #17

Closed
daaain opened this issue Mar 14, 2012 · 2 comments
Closed

Add option to force HTML5 doctype #17

daaain opened this issue Mar 14, 2012 · 2 comments

Comments

@daaain
Copy link

daaain commented Mar 14, 2012

At the moment there's no way to make Tidy convert doctype to the simple HTML5 format, which is a shame as it could be a really useful tool to bulk convert legacy markup.

Adding a forcehtml5 option to --doctype which acts the same as omit, but adds a simple <!DOCTYPE html> back in would be a great start I think.

@sideshowbarker
Copy link
Contributor

Yeah I guess I will try to add this.

@daaain
Copy link
Author

daaain commented Mar 14, 2012

Actually just realised there's a user option, but there's no indication how to use it, maybe that can do what I'm looking for?

Would it be --doctype user "<!DOCTYPE html>" then?

Or is user the use case where you can pass in a custom FPI string?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants