-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(renderer) Add xhtml5 support #618
Conversation
This adds support for XHTML5 output, tests, and the -b flag (which can now be used like -b [html,html5,xhtml,xhtml5]. (Also --backend.) Tests are enclosed, and we leverage as much as we can from the HTML5 backend.
|
||
var templates = html5.Templates() | ||
|
||
//sgml.Templates{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I meant to delete this comment. Will follow up.
Codecov Report
@@ Coverage Diff @@
## master #618 +/- ##
==========================================
- Coverage 86.78% 86.76% -0.03%
==========================================
Files 69 70 +1
Lines 4322 4374 +52
==========================================
+ Hits 3751 3795 +44
- Misses 363 368 +5
- Partials 208 211 +3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR is very large, but as you told me it's mostly a copy/paste/edit of the existing HTML templates and tests. I just have one comment but otherwise the PR looks good
|
||
var templates = html5.Templates() | ||
|
||
//sgml.Templates{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you remove this commented out lines?
Also, added test cases to cover both html and xhtml5 backends, as well as invalid backends.
thanks for this contribution @gdamore 🙌 |
This adds support for XHTML5 output, tests, and the -b
flag (which can now be used like -b [html,html5,xhtml,xhtml5].
(Also --backend.) Tests are enclosed, and we leverage as much
as we can from the HTML5 backend.