Skip to content

Commit 187123f

Browse files
committed
release 1.8.5
1 parent 63d949f commit 187123f

File tree

8 files changed

+69
-10
lines changed

8 files changed

+69
-10
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<a name="1.8.5"></a>
2+
# [1.8.5](https://github.com/showdownjs/showdown/compare/1.8.4...1.8.5) (2017-12-10)
3+
4+
5+
### Features
6+
7+
* **completeHTMLDocument:** add option to output a complete HTML document ([a8427c9](https://github.com/showdownjs/showdown/commit/a8427c9))
8+
* **metadata:** add support for embedded metadata ([63d949f](https://github.com/showdownjs/showdown/commit/63d949f)), closes [#260](https://github.com/showdownjs/showdown/issues/260)
9+
10+
11+
112
<a name="1.8.4"></a>
213
## [1.8.4](https://github.com/showdownjs/showdown/compare/1.8.3...1.8.4) (2017-12-05)
314

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,15 @@ var defaultOptions = showdown.getDefaultOptions();
360360
* **underline**: (boolean) [default false] ***EXPERIMENTAL FEATURE*** Enable support for underline.
361361
Syntax is **double** or **triple** **underscores** ex: `__underlined word__`. With this option enabled, underscores are no longer parses into `<em>` and `<strong>`.
362362

363+
* **completeHTMLDocument**: (boolean) [default false] Outputs a complete html document,
364+
including `<html>`, `<head>` and `<body>` tags' instead of an HTML fragment. (since v.1.8.5)
365+
366+
* **metadata**: (boolean) [default false] Enable support for document metadata (defined at the top of the document
367+
between `«««` and `»»»` or between `---` and `---`). (since v.1.8.5)
368+
363369
**NOTE**: Please note that until **version 1.6.0**, all of these options are ***DISABLED*** by default in the cli tool.
364-
370+
371+
365372
## Flavors
366373
367374
You can also use flavors or presets to set the correct options automatically, so that showdown behaves like popular markdown flavors.

dist/showdown.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/showdown.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "showdown",
3-
"version": "1.8.4",
3+
"version": "1.8.5",
44
"description": "A Markdown to HTML converter written in Javascript",
55
"author": "Estevão Santos",
66
"homepage": "http://showdownjs.com/",

performance.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

performance.log.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,47 @@
11
# Performance Tests for showdown
22

33

4+
## [version 1.9.0](https://github.com/showdownjs/showdown/tree/1.9.0)
5+
6+
### Test Suite: Basic (50 cycles)
7+
| test | avgTime | max | min |
8+
|:-----|--------:|----:|----:|
9+
|Simple "Hello World"|0.476|9.945|0.088|
10+
|performance.testfile.md|32.208|61.885|28.234|
11+
12+
### Test Suite: subParsers (20 cycles)
13+
| test | avgTime | max | min |
14+
|:-----|--------:|----:|----:|
15+
|hashHTMLBlocks|5.827|23.030|2.429|
16+
|anchors|0.363|0.636|0.294|
17+
|autoLinks|0.120|0.319|0.071|
18+
|blockQuotes|2.884|6.237|2.040|
19+
|codeBlocks|0.290|1.131|0.189|
20+
|codeSpans|0.314|0.875|0.234|
21+
|detab|0.095|0.141|0.086|
22+
|encodeAmpsAndAngles|0.155|1.186|0.095|
23+
|encodeBackslashEscapes|0.087|0.144|0.069|
24+
|encodeCode|0.918|1.279|0.865|
25+
|escapeSpecialCharsWithinTagAttributes|0.245|0.711|0.156|
26+
|githubCodeBlocks|0.160|0.291|0.142|
27+
|hashBlock|0.043|0.067|0.038|
28+
|hashElement|0.003|0.035|0.000|
29+
|hashHTMLSpans|4.273|6.304|3.983|
30+
|hashPreCodeTags|0.133|0.344|0.110|
31+
|headers|1.454|3.874|1.098|
32+
|horizontalRule|0.230|0.300|0.202|
33+
|images|0.191|0.476|0.135|
34+
|italicsAndBold|0.310|0.866|0.236|
35+
|lists|3.135|4.249|2.662|
36+
|outdent|0.167|0.262|0.140|
37+
|paragraphs|6.383|7.885|5.680|
38+
|spanGamut|4.106|5.310|3.698|
39+
|strikethrough|0.005|0.087|0.000|
40+
|stripLinkDefinitions|0.245|0.376|0.221|
41+
|tables|0.003|0.049|0.001|
42+
|unescapeSpecialChars|0.010|0.057|0.007|
43+
44+
445
## [version 1.8.4](https://github.com/showdownjs/showdown/tree/1.8.4)
546

647
### Test Suite: Basic (50 cycles)

test/node/showdown.Converter.makeHtml.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ describe('showdown.Converter', function () {
6767
'foo: bar\n' +
6868
'baz: bazinga\n' +
6969
'---\n',
70-
text2 =
71-
'---TIVIE\n' +
72-
'a: b\n' +
73-
'c: 123\n' +
74-
'---\n';
70+
text2 =
71+
'---TIVIE\n' +
72+
'a: b\n' +
73+
'c: 123\n' +
74+
'---\n';
7575

7676
it('should correctly set metadata', function () {
7777
converter.setOption('metadata', true);

0 commit comments

Comments
 (0)