-
Notifications
You must be signed in to change notification settings - Fork 61
bug(commonmark) Header html tags in table cells do not round-trip or preview properly #183
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingcommonmarkRelates to commonmark round-tripping or syntaxRelates to commonmark round-tripping or syntax
Description
Describe the bug
Header html tags used in table header or body cells end up not previewing properly in RT mode and mangle the table upon round-trip. It works in current editor when saved to the site - renders properly.
To Reproduce
- MD mode, create table, add an
h1html tag in any cell around the text - Go to RT mode, observe that the tag has been transformed as a literal
- Go back to MD mode and the table syntax is all messed up and mangled
Expected behavior
Ideally we would support header elements in table cells. The GH MD table spec does not mention it, but the current editor and on-side rendering support it. If we decide not to support it, should at least allow round-trip without destroying the table markdup.
Desktop (please complete the following information):
Windows 11 Chrome 103
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcommonmarkRelates to commonmark round-tripping or syntaxRelates to commonmark round-tripping or syntax
Type
Projects
Status
Todo
