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

feat(renderer) Add xhtml5 support #618

Merged
merged 3 commits into from
Jun 17, 2020
Merged

Conversation

gdamore
Copy link
Collaborator

@gdamore gdamore commented Jun 16, 2020

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.

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{
Copy link
Collaborator Author

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
Copy link

codecov bot commented Jun 16, 2020

Codecov Report

Merging #618 into master will decrease coverage by 0.02%.
The diff coverage is 88.05%.

@@            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     

Copy link
Member

@xcoulon xcoulon left a 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{
Copy link
Member

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?

gdamore added 2 commits June 16, 2020 14:25
Also, added test cases to cover both html and xhtml5 backends,
as well as invalid backends.
@xcoulon xcoulon merged commit 4448584 into bytesparadise:master Jun 17, 2020
@xcoulon
Copy link
Member

xcoulon commented Jun 17, 2020

thanks for this contribution @gdamore 🙌

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

Successfully merging this pull request may close these issues.

2 participants