mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
Update README.md
This commit is contained in:
parent
932610839f
commit
107bdb7b2f
26
README.md
26
README.md
|
@ -182,13 +182,29 @@ var defaultOptions = showdown.getDefaultOptions();
|
||||||
```
|
```
|
||||||
|
|
||||||
* **headerLevelStart**: (integer) [default 1] Set the header starting level. For instance, setting this to 3 means that
|
* **headerLevelStart**: (integer) [default 1] Set the header starting level. For instance, setting this to 3 means that
|
||||||
`# foo` will be parsed as `<h3>foo</h3>`
|
|
||||||
|
|
||||||
* **simplifiedAutoLink**: (boolean) [default false] Turning this on will enable GFM autolink style. This means `some text www.google.com`
|
```md
|
||||||
will be parsed as `<p>some text <a href="www.google.com">www.google.com</a>`
|
# foo
|
||||||
|
```
|
||||||
|
will be parsed as
|
||||||
|
|
||||||
* **literalMidWordUnderscores**: (boolean) [default false] Turning this on will stop showdown from interpreting underscores
|
```html
|
||||||
in the middle of words as `<em>` and `<strong>` and instead treat them as literal underscores. Example:
|
<h3>foo</h3>
|
||||||
|
```
|
||||||
|
|
||||||
|
* **simplifiedAutoLink**: (boolean) [default false] Turning this on will enable GFM autolink style. This means that
|
||||||
|
|
||||||
|
```md
|
||||||
|
some text www.google.com
|
||||||
|
```
|
||||||
|
will be parsed as
|
||||||
|
````
|
||||||
|
<p>some text <a href="www.google.com">www.google.com</a>
|
||||||
|
```
|
||||||
|
|
||||||
|
* **literalMidWordUnderscores**: (boolean) [default false] Turning this on will stop showdown from interpreting underscores in the middle of words as `<em>` and `<strong>` and instead treat them as literal underscores.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
```md
|
```md
|
||||||
some text with__underscores__in middle
|
some text with__underscores__in middle
|
||||||
|
|
Loading…
Reference in New Issue
Block a user