Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with tables #39

Closed
cschweda opened this issue Jul 6, 2017 · 2 comments
Closed

Doesn't work with tables #39

cschweda opened this issue Jul 6, 2017 · 2 comments

Comments

@cschweda
Copy link

cschweda commented Jul 6, 2017

I can't seem to get this to work with tables.

Is there any way to add a class to a markdown table?

@arve0
Copy link
Owner

arve0 commented Jul 6, 2017

Hi, thanks for reporting.

Tables are not a standard commonmark feature. Can you give a full example, with plugins you use, input and expected output?

@cschweda
Copy link
Author

cschweda commented Jul 6, 2017

Something like this:

|  Header1 | Header2  |
|---|---|
| 3  | 4  |
|   5|  6 |

(Generated via: http://www.tablesgenerator.com/markdown_tables)

Essentially, I just want to insert class attributes (or even just a single attribute) in the TABLE tag.

BTW -- I'm using Vue.js and Webpack 2.6.x. My page is using:

var md = require('markdown-it')();
md.use(require('markdown-it-footnote'));
md.use(require("markdown-it-fontawesome"));
md.use(require("markdown-it-attrs")) 

Demo here: https://markdown.icjia.cloud

Repo here: https://github.com/ICJIA/icjia-markdown

arve0 added a commit that referenced this issue Aug 4, 2017
syntax:

| header1 | header2 |
| ------- | ------- |
| cell1   | cell2   |
{.class attribute=1 #id}
@arve0 arve0 closed this as completed in 5f5241e Aug 4, 2017
mubaraqwahab added a commit to mubaraqwahab/thinkdev that referenced this issue Mar 28, 2022
mubaraqwahab added a commit to mubaraqwahab/thinkdev that referenced this issue Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants