mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
docs: suggest using `{<...>...</...>}` if don't use Markdown in migra… (#10167)
This commit is contained in:
parent
e34614963e
commit
6c7f2fde20
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue