mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
feat(flavor: ghost): add Ghost flavor
This commit is contained in:
parent
4a88db364c
commit
6374b5b376
|
@ -310,10 +310,12 @@ var defaultOptions = showdown.getDefaultOptions();
|
|||
|
||||
You can also use flavors or presets to set the correct options automatically, so that showdown behaves like popular markdown flavors.
|
||||
|
||||
Currently, there are two flavors available:
|
||||
Currently, the following flavors are available:
|
||||
|
||||
* original - original markdown flavor as in [John Gruber's spec](https://daringfireball.net/projects/markdown/)
|
||||
* vanilla - showdown base flavor (as from v1.3.1)
|
||||
* github - GFM (GitHub Flavored Markdown)
|
||||
|
||||
* github - GFM (GitHub Flavored Markdown)
|
||||
* vanilla - original markdown flavor
|
||||
|
||||
### Global
|
||||
```javascript
|
||||
|
|
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.js.map
vendored
BIN
dist/showdown.js.map
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js.map
vendored
BIN
dist/showdown.min.js.map
vendored
Binary file not shown.
|
@ -29,6 +29,23 @@ var showdown = {},
|
|||
noHeaderId: true,
|
||||
ghCodeBlocks: false
|
||||
},
|
||||
ghost: {
|
||||
omitExtraWLInCodeBlocks: true,
|
||||
parseImgDimensions: true,
|
||||
simplifiedAutoLink: true,
|
||||
excludeTrailingPunctuationFromURLs: true,
|
||||
literalMidWordUnderscores: true,
|
||||
strikethrough: true,
|
||||
tables: true,
|
||||
tablesHeaderId: true,
|
||||
ghCodeBlocks: true,
|
||||
tasklists: true,
|
||||
smoothLivePreview: true,
|
||||
simpleLineBreaks: true,
|
||||
requireSpaceBeforeHeadingText: true,
|
||||
ghMentions: false,
|
||||
encodeEmails: true
|
||||
},
|
||||
vanilla: getDefaultOpts(true),
|
||||
allOn: allOptionsOn()
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user