Giter Site home page Giter Site logo

subfigures about mmark HOT 6 CLOSED

mmarkdown avatar mmarkdown commented on June 20, 2024
subfigures

from mmark.

Comments (6)

miekg avatar miekg commented on June 20, 2024

There is a good discussion here lierdakil/pandoc-crossref#20
It defines a block that gives you a Subfigure env. I don't particular care about subfigures per se, but currently there is no way to wrap a figure into something or add a caption.

from mmark.

miekg avatar miekg commented on June 20, 2024

And this: jgm/pandoc#3177

Defines a block, with !--- as the delimiters

!--- {#foo .right}
![my image](img.jpg)
![second image](img2.jpg)
!---

Which we could re-use, but also allow for single images:

!---
![GitHub Logo](/images/logo.png)
!---
Figure: this is an image

Where Figure makes it captionFigure in the AST and we basically do the same thing as for codeblocks. Other stuff can be put in there as well (crap in, crap out).
We do have to optional Title in the ![Alt text](/path/to/img.jpg "Optional title") image as well to consider.

But I think it is worth while to implement this

from mmark.

miekg avatar miekg commented on June 20, 2024

PR sent: gomarkdown/markdown#100

from mmark.

mb21 avatar mb21 commented on June 20, 2024

Note that we're still involved in a discussion in how to best implement jgm/pandoc#3177. Feel free to participate :-)

Also, the !--- syntax for pandoc native divs was not implemented, but instead:

::: myClass
![GitHub Logo](/images/logo.png)
:::

from mmark.

miekg avatar miekg commented on June 20, 2024

from mmark.

miekg avatar miekg commented on June 20, 2024

This has been included in mmark

from mmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.