如何为使用 Markdown 创建的表格添加 class 属性

[data-theme-*] attributes are whitelisted inside post content, so you can do

<div data-theme-shortcuts="true">

</div>

and then target it in CSS using something like

div[data-theme-shortcuts="true"] {

}

Originally discussed here:

10 个赞