You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually multiple issues with table markdown rendering. Let me know if you'd like me to split it into multiple issues.
Table structure below is taken from wikipedia pages.
Version tested: 1.9.0
I'll summarize the issues here, but see below for full examples and explanations:
<br> gets deleted but probably should be replaced with a space instead
New line sometimes gets added before |
| completely missing after some rows
Breaks when colspan is used, but could handle it by adding an extra empty cell (append | to all lines as many times as colspan in max colspan row requires)
<p> in a cell inserts a new line
List items in a cell completely disappeared, but could be turned into plain text
Inserts ---| in the middle of the table (but ---| should only appear once after the first row)
<wbr> not handled (should probably be replaced with an empty string)
<br> gets deleted but probably should be replaced with a space instead
New line gets added before | in the first line
Breaks when colspan is used, but could handle it by adding an extra empty cell (append | to all lines as many times as colspan in max colspan row requires)
<p> in a cell inserts a new line
List items in a cell completely disappeared, but could be turned into plain text
Inserts ---| in the middle of the table (but ---| should only appear once after the first row)
Khruangbin
---|
Khruangbin performing at the 2019 Haldern Pop Festival
Background information |
---|
Origin | Houston, Texas, United States |
---|---|
Genres |
---|
Years active | 2010 (2010)–present |
---|---|
Labels | Dead OceansNight Time Stories
|
---|---|
Members |
---|
Website | khruangbin |
---|---|
Expected output:
Khruangbin ||
---|---|
Khruangbin performing at the 2019 Haldern Pop Festival ||
Background information ||
Origin | Houston, Texas, United States |
Years active | 2010 (2010)–present |
Labels | Dead OceansNight Time Stories |
Members | Laura Lee Mark Speer DJ Johnson |
Website | khruangbin.com |
Issues:
| completely missing after the first and second rows
lists not parsed within cells (so genres and members missing)
<wbr> not handled in the website field (should be replaced with an empty string)
Inserts ---| in the middle of the table (but ---| should only appear once after the first row)
The text was updated successfully, but these errors were encountered:
Thanks for the detailed example, this seems to be related to <br> in tables. Nested tables structures are difficult to process. I'll leave the issue open for now and see if someone can address it.
This is actually multiple issues with table markdown rendering. Let me know if you'd like me to split it into multiple issues.
Table structure below is taken from wikipedia pages.
Version tested:
1.9.0
I'll summarize the issues here, but see below for full examples and explanations:
<br>
gets deleted but probably should be replaced with a space instead|
|
completely missing after some rowscolspan
is used, but could handle it by adding an extra empty cell (append|
to all lines as many times as colspan in max colspan row requires)<p>
in a cell inserts a new line---|
in the middle of the table (but---|
should only appear once after the first row)<wbr>
not handled (should probably be replaced with an empty string)Extract call used:
Example 1
HTML:
Output:
Expected output:
Issues:
<br>
gets deleted but probably should be replaced with a space instead|
in the first linecolspan
is used, but could handle it by adding an extra empty cell (append|
to all lines as many times as colspan in max colspan row requires)<p>
in a cell inserts a new line---|
in the middle of the table (but---|
should only appear once after the first row)Example 2
HTML:
Output:
Expected output:
Issues:
|
completely missing after the first and second rows<wbr>
not handled in the website field (should be replaced with an empty string)---|
in the middle of the table (but---|
should only appear once after the first row)The text was updated successfully, but these errors were encountered: