Table does not have caption
See original GitHub issueLike #66 we need a plugin to embed caption for tables
Example of code:
a | b
----|----
c | d
Table: dummy
+-----+-----+
| a | b |
+-----+-----+
| c | d |
+-----+-----+
Table: dummy
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Word 2016- table captions not appearing in table of contents
Hi, Captions do not ordinarily appear in a Table of Contents, but rather in a Table of Figures/Tables. This is the same field...
Read more >Why can't I put a caption in this table? - LaTeX Stack Exchange
1 Answer 1 · Grouping follows a hierarchy: If you open up a table and inside it a tabular , you have to...
Read more >The Table Caption element - HTML - MDN Web Docs - Mozilla
This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values:...
Read more >Captions for Figures and Tables | Style for Students Online
In papers written for classes and submitted to journals, every table and figure should include a caption, honoring these common practices: The caption...
Read more >Caption & Summary | Web Accessibility Initiative (WAI) - W3C
The caption should be a short heading for the table content. In this example “Concerts” tells users what information is in the table...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok thank you. I fix it quickly.
Yeap @vhf I know, but I didn’t know what’s wrong. I think I understand now!
@artragis Gotcha! https://github.com/zestedesavoir/zmarkdown/blob/master/packages/remark-captions/src/index.js#L17 (
Object.keys(legendBlock).forEach(nodeType => visit(tree, nodeType, externLegendVisitorCreator(blocks)))
)The plugin only visit nodes in
legendBlock
, not inblocks
so new nodes (likegridTable
) inblocks
is simply ignored. I think we just have to replacelegendBlock
byblocks
and add a new test (and it will work). If you want to correct this (or I can do this after the ping plugin).