File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!-- {#
2
+ Displays an image with a legend.
3
+
4
+ Example usage:
5
+ {{ image_figure(
6
+ alt="image/GIF description"
7
+ src="image link"
8
+ caption="image caption") }}
9
+
10
+ Note that the caption can contain markdown:
11
+ {{ image_figure(
12
+ alt="image/GIF description"
13
+ src="image link"
14
+ caption="image caption with some **strong** text") }}
15
+
16
+ But careful! Link references don't work:
17
+ This doesn't work:
18
+ {{ image_figure(
19
+ alt="image/GIF description"
20
+ src="image link"
21
+ caption="[image caption][link]") }}
22
+ [link]: https://example.com
23
+ Use this instead:
24
+ {{ image_figure(
25
+ alt="image/GIF description"
26
+ src="image link"
27
+ caption="[image caption](https://example.com)") }}
28
+ #} -->
29
+
1
30
{% if src != "image link" %}
2
31
{# Only validate against placeholders if we're not in the example #}
3
32
{% if alt == "image/GIF description" %}
You can’t perform that action at this time.
0 commit comments