-
Any chance merging cells would be supported in MkDocs Material? I know Markdown does not support more complex usage of tables... is there any way to workaround it other than writing HTML code (or plans to provide this kind of support)? Thanks, appreciate all the answers in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Thanks for suggesting. As you noted, it's not supported by Python Markdown, so if you don't want to use HTML, another third-party Markdown extension would need to be created (or support added to Python Markdown). It's beyond the scope of this project, but it's definitely an excellent use case for a third-party extension! We could also advertise such an extension on our docs. |
Beta Was this translation helpful? Give feedback.
-
The Python Markdown used by MkDocs has no way of doing this. But there is a more convenient tool than directly editing HTML tables, which is to use HTML Tables generator. |
Beta Was this translation helpful? Give feedback.
-
Using this tool HTML Tables generator indeed makes it convenient to create complex tables, merge cells using HTML, etc.
Below is the method using custom CSS. This is the code in YAML. th, td { and
However, the final effect is as follows, and it seems the CSS did not take effect. |
Beta Was this translation helpful? Give feedback.
Thanks for suggesting. As you noted, it's not supported by Python Markdown, so if you don't want to use HTML, another third-party Markdown extension would need to be created (or support added to Python Markdown). It's beyond the scope of this project, but it's definitely an excellent use case for a third-party extension! We could also advertise such an extension on our docs.