Comments (1)
As a matter of fact our way of doing it is not so optimal : we try to find a legend while we visit the captioned blocks.
As a matter of fact this is not so easy because :
- if the caption is not included inside the block (table, equation block, code) : we have to parse the first sibling paragraph. Parsing the caption should only be "find the first text node of this paragraph, if it's the right prefix, remove the prefix from textnode and change the paragraph node into a caption node encapsulated inside the figure node
- if the caption is included inside the block (inline equation, image, quote), this is a little bit more complex I think as the caption can be inside the captionned paragraph. Moreover as we use a visitor, we do not know if we are on the same line, we only aware of the AST.
from zmarkdown.
Related Issues (20)
- Cannot read properties of undefined (reading 'blockTokenizers') HOT 1
- [rebber]\begin{array]{l r} breaks the latex HOT 3
- Munin controller: TypeCannot read properties of undefined (reading 'value')
- KaTeX: TypeError: Cannot read properties of undefined (reading 'type') HOT 1
- [rebber-plugins]Escapement issue with command inside command
- remark-captions: remove one image when Figure follows two images HOT 1
- missing plugins in zmarkdown dependencies HOT 1
- rebber-plugins: missing some escapement
- rebber-plugins: \{ and \} improperly eaten
- Getting `blockTokenizers is undefined` when using in my Gatsby app HOT 1
- remark-captions: allow setting custom class per type HOT 2
- Regarding package "remark-ping". Cannot set properties of undefined (setting 'ping') HOT 2
- remark-captions: Code blocks are not rendering HOT 2
- zmarkdown: fix live demo
- Zmd generates an ordered list in a case it shouldn't HOT 2
- HTML export: should we add a lazy-loading attribute to all images and iframes? HOT 4
- Accessibility: confusion between caption and alternative text leads to badly accessible images HOT 1
- rebber: implement the new tables system
- zmarkdown: fix Sentry error reporting
- JSFiddle: add direct link as legend HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zmarkdown.