docs: suggest using {<...>...</...>} if don't use Markdown in migra… (#10167)

This commit is contained in:
Tatsunori Uchino 2024-05-28 02:24:14 +09:00 committed by GitHub
parent e34614963e
commit 6c7f2fde20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 0 deletions

View file

@ -357,6 +357,19 @@ If you don't want an extra `<p>` tag, refactor content on a case by case basis t
</figure>
```
You can also wrap such content with `{` and `}` to avoid extra `<p>` tags if you don't intend to use Markdown syntax there yet.
```diff
-<figure>
+{<figure>
<img src="/img/myImage.png" alt="My alt" />
<figcaption>
My image caption
</figcaption>
-</figure>
+</figure>}
```
:::
#### Unintended usage of directives

View file

@ -357,6 +357,19 @@ If you don't want an extra `<p>` tag, refactor content on a case by case basis t
</figure>
```
You can also wrap such content with `{` and `}` to avoid extra `<p>` tags if you don't intend to use Markdown syntax there yet.
```diff
-<figure>
+{<figure>
<img src="/img/myImage.png" alt="My alt" />
<figcaption>
My image caption
</figcaption>
-</figure>
+</figure>}
```
:::
#### Unintended usage of directives