Skip to content

Commit

Permalink
Mention Markdown support in figure captions
Browse files Browse the repository at this point in the history
  • Loading branch information
pawroman committed Dec 18, 2023
1 parent 964fffa commit d22b1e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Example:

Same as `image`, but with a few extra optional arguments:

- **`caption`**
- **`caption`** (supports markdown)
- **`caption_position`** (center \[default\] | left | right)
- **`caption_style`**

Expand All @@ -97,8 +97,8 @@ Example:
style="width: 25%;",
position="right",
caption_position="left",
caption="Ferris, the (unofficial) Rust mascot",
caption_style="font-weight: bold; font-style: italic;") }}
caption="**Ferris**, the (unofficial) Rust mascot",
caption_style="font-style: italic;") }}
```

## OpenGraph
Expand Down
6 changes: 3 additions & 3 deletions content/welcome-terminimal-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png",
style="width: 25%;",
position="center",
caption_position="left",
caption="Ferris, the (unofficial) Rust mascot",
caption="**Ferris**, the (unofficial) Rust mascot",
caption_style="font-weight: bold; font-style: italic;")
```

{{ figure(src="http://rustacean.net/assets/rustacean-flat-gesture.png",
style="width: 25%;",
position="center",
caption_position="left",
caption="Ferris, the (unofficial) Rust mascot",
caption_style="font-weight: bold; font-style: italic;") }}
caption="**Ferris**, the (unofficial) Rust mascot",
caption_style="font-style: italic;") }}

---

Expand Down

0 comments on commit d22b1e5

Please sign in to comment.