Skip to content

Commit 20be2fc

Browse files
committed
Update caption docs to use image example
1 parent 2c7f8c0 commit 20be2fc

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

docs/src/markdown/extensions/blocks/plugins/caption.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Captions can be nested, and if multiple captions are used on a single block, the
5353
nested figures.
5454

5555
```text title="Nested Captions"
56-
Paragraph
56+
![placeholder](../../../images/placeholder.jpeg)
5757
5858
/// caption
5959
Inner caption
@@ -65,7 +65,7 @@ Outer caption
6565
```
6666

6767
//// html | div.result
68-
Paragraph
68+
![placeholder](../../../images/placeholder.jpeg)
6969

7070
/// caption
7171
Inner caption
@@ -81,13 +81,13 @@ into that figure. This allows for more complex figures with sub-figures.
8181

8282
```html title="Complex Captions"
8383
//// html | figure
84-
Paragraph 1
84+
![placeholder](../../../images/placeholder.jpeg)
8585

8686
/// caption
8787
Caption 1
8888
///
8989

90-
Paragraph 2
90+
![placeholder](../../../images/placeholder.jpeg)
9191

9292
/// caption
9393
Caption 2
@@ -108,13 +108,13 @@ figure.general > figcaption {
108108

109109
///// html | div.result
110110
//// html | figure
111-
Paragraph 1
111+
![placeholder](../../../images/placeholder.jpeg)
112112

113113
/// caption
114114
Caption 1
115115
///
116116

117-
Paragraph 2
117+
![placeholder](../../../images/placeholder.jpeg)
118118

119119
/// caption
120120
Caption 2
@@ -140,13 +140,13 @@ caption.
140140

141141
```html title="Complex Captions: <code>md_in_html</code>"
142142
<figure markdown>
143-
Paragraph 1
143+
![placeholder](../../../images/placeholder.jpeg)
144144

145145
/// caption
146146
Caption 1
147147
///
148148

149-
Paragraph 2
149+
![placeholder](../../../images/placeholder.jpeg)
150150

151151
/// caption
152152
Caption 2
@@ -167,13 +167,13 @@ figure.general > figcaption {
167167

168168
///// html | div.result
169169
<figure markdown>
170-
Paragraph 1
170+
![placeholder](../../../images/placeholder.jpeg)
171171

172172
/// caption
173173
Caption 1
174174
///
175175

176-
Paragraph 2
176+
![placeholder](../../../images/placeholder.jpeg)
177177

178178
/// caption
179179
Caption 2
@@ -237,27 +237,27 @@ Regardless of whether `prepend` is enabled or disabled globally, you can force p
237237
`<` or `>` in the header for prepending or appending respectively.
238238

239239
```text title="Manual Prepend/Append"
240-
Paragraph 1
240+
![placeholder](../../../images/placeholder.jpeg)
241241
242242
/// caption | <
243243
Caption 1
244244
///
245245
246-
Paragraph 2 | >
246+
![placeholder](../../../images/placeholder.jpeg)
247247
248248
/// caption
249249
Caption 2
250250
///
251251
```
252252

253253
//// html | div.result
254-
Paragraph 1
254+
![placeholder](../../../images/placeholder.jpeg)
255255

256256
/// caption | <
257257
Caption 1
258258
///
259259

260-
Paragraph 2 | >
260+
![placeholder](../../../images/placeholder.jpeg)
261261

262262
/// caption
263263
Caption 2
@@ -340,44 +340,44 @@ increase the numbering depth for that specific figure by the specified value rel
340340
still subject to the `auto_levels` limit.
341341

342342
```text title="Nesting Depth"
343-
Paragraph
343+
![placeholder](../../../images/placeholder.jpeg)
344344
/// figure-caption
345345
Caption
346346
///
347347
348-
Paragraph
348+
![placeholder](../../../images/placeholder.jpeg)
349349
/// figure-caption | ^1
350350
Caption
351351
///
352352
353-
Paragraph
353+
![placeholder](../../../images/placeholder.jpeg)
354354
/// figure-caption | ^1
355355
Caption
356356
///
357357
358-
Paragraph
358+
![placeholder](../../../images/placeholder.jpeg)
359359
/// figure-caption
360360
Caption
361361
///
362362
```
363363

364364
//// html | div.result
365-
Paragraph
365+
![placeholder](../../../images/placeholder.jpeg)
366366
/// figure-caption
367367
Caption
368368
///
369369

370-
Paragraph
370+
![placeholder](../../../images/placeholder.jpeg)
371371
/// figure-caption | ^1
372372
Caption
373373
///
374374

375-
Paragraph
375+
![placeholder](../../../images/placeholder.jpeg)
376376
/// figure-caption | ^1
377377
Caption
378378
///
379379

380-
Paragraph
380+
![placeholder](../../../images/placeholder.jpeg)
381381
/// figure-caption
382382
Caption
383383
///
@@ -401,14 +401,14 @@ of figure types that specify a prefix template. Manual mode does not not check o
401401
they are in fact numbers that are formatted properly.
402402

403403
```text title="Manual Numbers"
404-
Paragraph
404+
![placeholder](../../../images/placeholder.jpeg)
405405
/// figure-caption | 12
406406
Caption
407407
///
408408
```
409409

410410
//// html | div.result
411-
Paragraph
411+
![placeholder](../../../images/placeholder.jpeg)
412412
/// figure-caption | 12
413413
Caption
414414
///
@@ -436,7 +436,7 @@ the ID will be applied instead of any auto-generated ID. Manually specified IDs
436436
numerical prefixes.
437437

438438
```
439-
Paragraph
439+
![placeholder](../../../images/placeholder.jpeg)
440440
441441
/// figure-caption
442442
attrs: {id: static-id}
1.03 KB
Loading

0 commit comments

Comments
 (0)