Fix figure shortcode rendering failed in a note of diagram-guide

pull/49436/head
windsonsea 2025-01-15 10:48:11 +08:00
parent 99d7743668
commit c2db5d12d1
1 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ the `.svg` image file and add a caption.
For more details on diagram captions, see [How to use captions](#how-to-use-captions).
{{< note >}}
The `{{</* figure */>}}` shortcode is the preferred method for adding `.svg` image files
The figure shortcode is the preferred method for adding `.svg` image files
to your documentation. You can also use the standard markdown image syntax like so:
`![my boxnet diagram](static/images/boxnet.svg)`.
And you will need to add a caption below the diagram.
@ -658,7 +658,7 @@ You should pass the `src`, `alt`, `class` and `caption` values into the
`diagram-large`, `diagram-medium` and `diagram-small` classes.
{{< note >}}
Diagrams created using the `Inline` method don't use the `{{</* figure */>}}`
Diagrams created using the `Inline` method don't use the figure
shortcode. The Mermaid code defines how the diagram will render on your page.
{{< /note >}}