feat(flavor: ghost): add Ghost flavor

This commit is contained in:
Estevao Soares dos Santos 2017-02-06 07:22:01 +00:00
parent 4a88db364c
commit 6374b5b376
6 changed files with 22 additions and 3 deletions

View File

@ -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)
* vanilla - original markdown flavor
### Global
```javascript

BIN
dist/showdown.js vendored

Binary file not shown.

BIN
dist/showdown.js.map vendored

Binary file not shown.

BIN
dist/showdown.min.js vendored

Binary file not shown.

Binary file not shown.

View File

@ -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()
};