From f6897186ba428de286a0add7994c40c474426efc Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Tue, 4 Mar 2025 08:18:34 +0100 Subject: [PATCH] revert old syntax --- book/syntax_exercises/008.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/book/syntax_exercises/008.md b/book/syntax_exercises/008.md index ab7caf1..336bbd8 100644 --- a/book/syntax_exercises/008.md +++ b/book/syntax_exercises/008.md @@ -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/.png -:width: 80% -:align: center +--- +width: 80% +align: center +--- ``` ```` @@ -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 +--- ``` ````