Skip to content

Figure and Quote Captions

Tomer Lichtash edited this page Oct 27, 2022 · 3 revisions

In ML project we provide a way to add markup to the markdown files (yes), so we can attach captions to images (which are used as figures) and quotes, in the following way:

Figure

Figure can be anything - from Text to Image. It's a semantic definition of the Figure's content. The figure's caption is automatically indexed through the document, and can be assembled like so:

Figure Caption

<figure>
Figure With auto generated caption
</figure>

Custom Figure Caption

<figure caption="Custom caption %index%">
Figure With a custom caption
</figure>

Figure Template in FrontMatter

---
figures: 
   base: 2
   auto: false
   template: "Figure %d of %f"
---

Blockquote

Quotes content are specified within a cite tag, like so:

<blockquote>
Blockquote Content
<cite>Caption Content</cite>
</blockquote>
Clone this wiki locally