mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
release 1.8.5
This commit is contained in:
parent
63d949f731
commit
187123fed5
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -1,3 +1,14 @@
|
|||
<a name="1.8.5"></a>
|
||||
# [1.8.5](https://github.com/showdownjs/showdown/compare/1.8.4...1.8.5) (2017-12-10)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **completeHTMLDocument:** add option to output a complete HTML document ([a8427c9](https://github.com/showdownjs/showdown/commit/a8427c9))
|
||||
* **metadata:** add support for embedded metadata ([63d949f](https://github.com/showdownjs/showdown/commit/63d949f)), closes [#260](https://github.com/showdownjs/showdown/issues/260)
|
||||
|
||||
|
||||
|
||||
<a name="1.8.4"></a>
|
||||
## [1.8.4](https://github.com/showdownjs/showdown/compare/1.8.3...1.8.4) (2017-12-05)
|
||||
|
||||
|
|
|
@ -360,8 +360,15 @@ var defaultOptions = showdown.getDefaultOptions();
|
|||
* **underline**: (boolean) [default false] ***EXPERIMENTAL FEATURE*** Enable support for underline.
|
||||
Syntax is **double** or **triple** **underscores** ex: `__underlined word__`. With this option enabled, underscores are no longer parses into `<em>` and `<strong>`.
|
||||
|
||||
* **completeHTMLDocument**: (boolean) [default false] Outputs a complete html document,
|
||||
including `<html>`, `<head>` and `<body>` tags' instead of an HTML fragment. (since v.1.8.5)
|
||||
|
||||
* **metadata**: (boolean) [default false] Enable support for document metadata (defined at the top of the document
|
||||
between `«««` and `»»»` or between `---` and `---`). (since v.1.8.5)
|
||||
|
||||
**NOTE**: Please note that until **version 1.6.0**, all of these options are ***DISABLED*** by default in the cli tool.
|
||||
|
||||
|
||||
|
||||
## Flavors
|
||||
|
||||
You can also use flavors or presets to set the correct options automatically, so that showdown behaves like popular markdown flavors.
|
||||
|
|
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "showdown",
|
||||
"version": "1.8.4",
|
||||
"version": "1.8.5",
|
||||
"description": "A Markdown to HTML converter written in Javascript",
|
||||
"author": "Estevão Santos",
|
||||
"homepage": "http://showdownjs.com/",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,47 @@
|
|||
# Performance Tests for showdown
|
||||
|
||||
|
||||
## [version 1.9.0](https://github.com/showdownjs/showdown/tree/1.9.0)
|
||||
|
||||
### Test Suite: Basic (50 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|Simple "Hello World"|0.476|9.945|0.088|
|
||||
|performance.testfile.md|32.208|61.885|28.234|
|
||||
|
||||
### Test Suite: subParsers (20 cycles)
|
||||
| test | avgTime | max | min |
|
||||
|:-----|--------:|----:|----:|
|
||||
|hashHTMLBlocks|5.827|23.030|2.429|
|
||||
|anchors|0.363|0.636|0.294|
|
||||
|autoLinks|0.120|0.319|0.071|
|
||||
|blockQuotes|2.884|6.237|2.040|
|
||||
|codeBlocks|0.290|1.131|0.189|
|
||||
|codeSpans|0.314|0.875|0.234|
|
||||
|detab|0.095|0.141|0.086|
|
||||
|encodeAmpsAndAngles|0.155|1.186|0.095|
|
||||
|encodeBackslashEscapes|0.087|0.144|0.069|
|
||||
|encodeCode|0.918|1.279|0.865|
|
||||
|escapeSpecialCharsWithinTagAttributes|0.245|0.711|0.156|
|
||||
|githubCodeBlocks|0.160|0.291|0.142|
|
||||
|hashBlock|0.043|0.067|0.038|
|
||||
|hashElement|0.003|0.035|0.000|
|
||||
|hashHTMLSpans|4.273|6.304|3.983|
|
||||
|hashPreCodeTags|0.133|0.344|0.110|
|
||||
|headers|1.454|3.874|1.098|
|
||||
|horizontalRule|0.230|0.300|0.202|
|
||||
|images|0.191|0.476|0.135|
|
||||
|italicsAndBold|0.310|0.866|0.236|
|
||||
|lists|3.135|4.249|2.662|
|
||||
|outdent|0.167|0.262|0.140|
|
||||
|paragraphs|6.383|7.885|5.680|
|
||||
|spanGamut|4.106|5.310|3.698|
|
||||
|strikethrough|0.005|0.087|0.000|
|
||||
|stripLinkDefinitions|0.245|0.376|0.221|
|
||||
|tables|0.003|0.049|0.001|
|
||||
|unescapeSpecialChars|0.010|0.057|0.007|
|
||||
|
||||
|
||||
## [version 1.8.4](https://github.com/showdownjs/showdown/tree/1.8.4)
|
||||
|
||||
### Test Suite: Basic (50 cycles)
|
||||
|
|
|
@ -67,11 +67,11 @@ describe('showdown.Converter', function () {
|
|||
'foo: bar\n' +
|
||||
'baz: bazinga\n' +
|
||||
'---\n',
|
||||
text2 =
|
||||
'---TIVIE\n' +
|
||||
'a: b\n' +
|
||||
'c: 123\n' +
|
||||
'---\n';
|
||||
text2 =
|
||||
'---TIVIE\n' +
|
||||
'a: b\n' +
|
||||
'c: 123\n' +
|
||||
'---\n';
|
||||
|
||||
it('should correctly set metadata', function () {
|
||||
converter.setOption('metadata', true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user