View Source Tuftemark.Figures (Tuftemark v0.2.0)

Converts Markdown images to HTML figures with layout applicable to Tufte CSS.

Fullwidth & Caption

If Markdown defines a .fullwidth image that is followed by a paragraph supposed to the its .caption, we ignore the caption text (as we are not sure how to render it properly yet). Maybe we will handle it later.

Marginal Images

At the original Tufte CSS page, we can see an example of a marginal image (the image of Rhinoceros). Authors wrap a paragraph of text (that is visually right to the left of the marginal image block) inside the marginnote itself.

Our current implementation works a bit differently - it renders next paragraph of Markdown text (that goes after the marginal image) as regular p that goes after side note.

Not a big deal, but it gives slightly other layout and on narrow screens the margin toggle icon (by default it's ) rendered differently.

Summary

Functions