Closed pkuczynski closed 10 years ago
Thanks for reporting, will be released in a view days.
Actually in my case I had a following table definition:
<table>
<colgroup>
<col />
<col />
</colgroup>
<tbody>
<tr>
<td>...</td>
<td>...</td>
</tr>
...
</tbody>
</table>
So after turning option to pass through unknow tags, the table was converted correctly, however it was missing the header. So when converting it back to htm using Redcarpet did not worked.
If a table is missing a header I would still expect the table to be rendered. This could be achieved by generating empty header:
| | |
|---|---|
| ... | ... |
| ... | ... |
What do you think?
Ok so this is more about the tbody and thead element. Hm! Ok, I'll put that into the next release as well, stay tuned!
Well, one thing was that with default settings it was skipping the table, which was a very bad thing from my point of view. I could fix that by adding the pass_through
option to unknow_tags
. However this was not generating a header at all, so gems like Redcarpet could not convert it back to a table...
Maybe there should be another issue raised in this case if you prefer?
Nah, that's fine. You're completely right, it shouldn't have skipped the table, the support for those tags was just missing.
Now the table should be included and even if it misses the thead
in the end the output should be fairly correct.
Please let me know if this works for you!
Have you release a new version?
0.6.0 will be release within the next hour. Thanks for reporting again. :+1:
Add support for
<colgroup>
and<col>
which could be simply ignored...http://www.w3schools.com/tags/tag_colgroup.asp