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(html+react): render Table header as <th> #269

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Conversation

z0al
Copy link
Member

@z0al z0al commented Sep 16, 2021

No description provided.

@@ -205,14 +206,24 @@ describe('documentToHtmlString', () => {
it('renders tables', () => {
const document: Document = tableDoc;
const expected =
'<table><tbody>' +
'<table>' +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove tbody? Because th cannot be rendered inside it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it won't be semantically correct HTML

@z0al z0al merged commit 0f82905 into master Sep 16, 2021
@z0al z0al deleted the render-table-header branch September 16, 2021 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants