mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 13:06:58 +02:00
docs(v2): fix markdown syntax examples in templates
This commit is contained in:
parent
926cbb818b
commit
20fbceb9f1
3 changed files with 12 additions and 24 deletions
|
@ -49,18 +49,14 @@ Strikethrough uses two tildes. ~~Scratch this.~~
|
||||||
1. Ordered sub-list
|
1. Ordered sub-list
|
||||||
1. And another item.
|
1. And another item.
|
||||||
|
|
||||||
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
|
|
||||||
|
|
||||||
To have a line break without a paragraph, you will need to use two trailing spaces. Note that this line is separate, but within the same paragraph. (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
|
|
||||||
|
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
* Unordered list can use asterisks
|
* Unordered list can use asterisks
|
||||||
<!-- prettier-ignore -->
|
|
||||||
|
|
||||||
* Or minuses
|
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
|
- Or minuses
|
||||||
|
|
||||||
- Or pluses
|
<!-- prettier-ignore -->
|
||||||
|
+ Or pluses
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -109,7 +105,7 @@ alert(s);
|
||||||
|
|
||||||
```python
|
```python
|
||||||
s = "Python syntax highlighting"
|
s = "Python syntax highlighting"
|
||||||
print s
|
print(s)
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -49,18 +49,14 @@ Strikethrough uses two tildes. ~~Scratch this.~~
|
||||||
1. Ordered sub-list
|
1. Ordered sub-list
|
||||||
1. And another item.
|
1. And another item.
|
||||||
|
|
||||||
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
|
|
||||||
|
|
||||||
To have a line break without a paragraph, you will need to use two trailing spaces. Note that this line is separate, but within the same paragraph. (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
|
|
||||||
|
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
* Unordered list can use asterisks
|
* Unordered list can use asterisks
|
||||||
<!-- prettier-ignore -->
|
|
||||||
|
|
||||||
* Or minuses
|
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
|
- Or minuses
|
||||||
|
|
||||||
- Or pluses
|
<!-- prettier-ignore -->
|
||||||
|
+ Or pluses
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -109,7 +105,7 @@ alert(s);
|
||||||
|
|
||||||
```python
|
```python
|
||||||
s = "Python syntax highlighting"
|
s = "Python syntax highlighting"
|
||||||
print s
|
print(s)
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -49,18 +49,14 @@ Strikethrough uses two tildes. ~~Scratch this.~~
|
||||||
1. Ordered sub-list
|
1. Ordered sub-list
|
||||||
1. And another item.
|
1. And another item.
|
||||||
|
|
||||||
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
|
|
||||||
|
|
||||||
To have a line break without a paragraph, you will need to use two trailing spaces. Note that this line is separate, but within the same paragraph. (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
|
|
||||||
|
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
* Unordered list can use asterisks
|
* Unordered list can use asterisks
|
||||||
<!-- prettier-ignore -->
|
|
||||||
|
|
||||||
* Or minuses
|
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
|
- Or minuses
|
||||||
|
|
||||||
- Or pluses
|
<!-- prettier-ignore -->
|
||||||
|
+ Or pluses
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -109,7 +105,7 @@ alert(s);
|
||||||
|
|
||||||
```python
|
```python
|
||||||
s = "Python syntax highlighting"
|
s = "Python syntax highlighting"
|
||||||
print s
|
print(s)
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue