【发布时间】:2021-07-06 00:18:18
【问题描述】:
我有这些选项来配置我的 marked 对象,但表格没有使用正确的 css 呈现。
{
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: true,
xhtml: false,
smartypants: true,
langPrefix: 'hljs language-',
highlight(code) {
return hljs.highlightAuto(code, ['html', 'javascript', 'java']).value;
},
}
我有什么遗漏的吗?
我需要在index.html 中包含一个min.css 文件来完成这项工作并为表格提供适当的css?
表格呈现如下:
对应的markdown是:
| ID | Name| email |
|:----:|:----:|:----:|
| ... | ... | ... |
| ... | ... | ... |
| ... | ... | ... |
【问题讨论】:
标签: css css-tables github-flavored-markdown javascript-marked