mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
docs: suggest using {<...>...</...>}
if don't use Markdown in migra… (#10167)
This commit is contained in:
parent
e34614963e
commit
6c7f2fde20
2 changed files with 26 additions and 0 deletions
|
@ -357,6 +357,19 @@ If you don't want an extra `<p>` tag, refactor content on a case by case basis t
|
||||||
</figure>
|
</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
|
#### 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>
|
</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
|
#### Unintended usage of directives
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue