revert old syntax

This commit is contained in:
Tom van Woudenberg 2025-03-04 08:18:34 +01:00
parent d8e3a347f8
commit f6897186ba

View file

@ -19,12 +19,14 @@ Unless you are using a file format like `*.svg`, the raw contents of a visual me
4. Now let's add the figure to a chapter. Navigate to the file you want to work in (for example `book/some_content/overview.md`) and make sure you're in the same branch as where you've added your figure.
5. Copy this syntax and adjust the file name, width, alignment and caption (for more options see the [MyST documentation](https://myst-parser.readthedocs.io/en/latest/syntax/images_and_figures.html#block-level-images)):
5. Copy this syntax and adjust the file name, width, alignment and caption (for more options see the [JupyterBook documentation](https://jupyterbook.org/en/stable/content/figures.html#figure-parameters)):
````md
```{figure} figures/<new_figure>.png
:width: 80%
:align: center
---
width: 80%
align: center
---
<caption text>
```
````
@ -41,8 +43,10 @@ If your figure is in a different directory than your chapter, you'll need to ref
````md
```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
:width: 80%
:align: center
---
width: 80%
align: center
---
<caption>
```
````