markdown-it-classy
markdown-it-classy copied to clipboard
Does not work with table
|Num| Name |Time|
|:---:|:----------------------:|----:|
|1|Mike AIGROZ (11)|08:52:02|
|2| Fredrik CRONEBORG (2)|08:52:12|
|3|Harry WILTSHIRE (7)|08:55:01|
{table}
If anyone is looking to add a class to all tables you can add it as a rule to your instance of markdown-it
. I arrived at this issue for because I was trying to use classy to accomplish that, but this was what I really wanted:
md.renderer.rules.table_open = function(tokens, idx) {
return '<table class="table">';
};
From https://github.com/markdown-it/markdown-it/issues/117#issuecomment-109386469.