admin管理员组文章数量:1026190
In Markdown I have tables like in the following example:
| | Fruit | Vegetable |
|-------------|-------|-----------|
| Apple | yes | no |
| Broccoli | no | yes |
| Carrot | no | yes |
| Orange | yes | no |
| Tomato | (yes) | yes |
Now I would like to highlight the "Tomato-Fruit" cell with some background color when converting the Markdown file to HTML using Pandoc.
I tried adding some cell attribute like this:
| Tomato | {: .emph} (yes) | yes |
and used the following command for conversion
pandoc -f markdown+markdown_attribute -t html -o output.html input.md
but the HTML output contains the {: .emph}
string literally, instead of being transformed into an HTML element class attribute (tested with Pandoc version 3.1.3).
Is there a way to style individual cells in Markdown as parsed by Pandoc?
In Markdown I have tables like in the following example:
| | Fruit | Vegetable |
|-------------|-------|-----------|
| Apple | yes | no |
| Broccoli | no | yes |
| Carrot | no | yes |
| Orange | yes | no |
| Tomato | (yes) | yes |
Now I would like to highlight the "Tomato-Fruit" cell with some background color when converting the Markdown file to HTML using Pandoc.
I tried adding some cell attribute like this:
| Tomato | {: .emph} (yes) | yes |
and used the following command for conversion
pandoc -f markdown+markdown_attribute -t html -o output.html input.md
but the HTML output contains the {: .emph}
string literally, instead of being transformed into an HTML element class attribute (tested with Pandoc version 3.1.3).
Is there a way to style individual cells in Markdown as parsed by Pandoc?
本文标签: How can I style individual table cells for Markdown to HTML conversion using PandocStack Overflow
版权声明:本文标题:How can I style individual table cells for Markdown to HTML conversion using Pandoc? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745622669a2159671.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论