markdown-it-classy icon indicating copy to clipboard operation
markdown-it-classy copied to clipboard

Does not work with table

Open syarul opened this issue 9 years ago • 1 comments

|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}

syarul avatar Jan 09 '16 05:01 syarul

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.

pirtleshell avatar Nov 23 '16 22:11 pirtleshell