Skip to content

Commit 483e51f

Browse files
committed
release 1.9.1
1 parent 5cc3fcc commit 483e51f

File tree

11 files changed

+30
-20
lines changed

11 files changed

+30
-20
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="1.9.1"></a>
2+
## [1.9.1](https://github.com/showdownjs/showdown/compare/1.9.0...1.9.1) (2019-11-02)
3+
4+
5+
### Bug Fixes
6+
7+
* **openLinksInNewWindow:** add rel="noopener noreferrer" to links ([1cd281f](https://github.com/showdownjs/showdown/commit/1cd281f)), closes [#670](https://github.com/showdownjs/showdown/issues/670)
8+
9+
10+
111
<a name="1.9.0"></a>
212
# [1.9.0](https://github.com/showdownjs/showdown/compare/1.8.7...1.9.0) (2018-11-10)
313

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.9.0",
3+
"version": "1.9.1",
44
"description": "A Markdown to HTML converter written in Javascript",
55
"author": "Estevão Santos",
66
"homepage": "http://showdownjs.com/",

src/converter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ showdown.Converter = function (converterOptions) {
4545
*/
4646
setConvFlavor = setFlavor,
4747

48-
/**
49-
* Metadata of the document
50-
* @type {{parsed: {}, raw: string, format: string}}
51-
*/
48+
/**
49+
* Metadata of the document
50+
* @type {{parsed: {}, raw: string, format: string}}
51+
*/
5252
metadata = {
5353
parsed: {},
5454
raw: '',
@@ -107,7 +107,7 @@ showdown.Converter = function (converterOptions) {
107107
'Please inform the developer that the extension should be updated!');
108108
legacyExtensionLoading(showdown.extensions[ext], ext);
109109
return;
110-
// END LEGACY SUPPORT CODE
110+
// END LEGACY SUPPORT CODE
111111

112112
} else if (!showdown.helper.isUndefined(extensions[ext])) {
113113
ext = extensions[ext];

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ showdown.helper.padEnd = function padEnd (str, targetLength, padString) {
394394
* POLYFILLS
395395
*/
396396
// use this instead of builtin is undefined for IE8 compatibility
397-
if (typeof(console) === 'undefined') {
397+
if (typeof console === 'undefined') {
398398
console = {
399399
warn: function (msg) {
400400
'use strict';

src/subParsers/anchors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ showdown.subParser('anchors', function (text, options, globals) {
6666

6767
// normal cases
6868
text = text.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
69-
writeAnchorTag);
69+
writeAnchorTag);
7070

7171
// handle reference-style shortcuts: [link text]
7272
// These must come last in case you've also got [link test][1]

src/subParsers/codeSpans.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ showdown.subParser('codeSpans', function (text, options, globals) {
2828

2929
text = globals.converter._dispatch('codeSpans.before', text, options, globals);
3030

31-
if (typeof(text) === 'undefined') {
31+
if (typeof text === 'undefined') {
3232
text = '';
3333
}
3434
text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,

src/subParsers/hashHTMLBlocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ showdown.subParser('hashHTMLBlocks', function (text, options, globals) {
7070

7171
//2. Split the text in that position
7272
var subTexts = showdown.helper.splitAtIndex(text, opTagPos),
73-
//3. Match recursively
73+
//3. Match recursively
7474
newSubText1 = showdown.helper.replaceRecursiveRegExp(subTexts[1], repFunc, patLeft, patRight, 'im');
7575

7676
// prevent an infinite loop

src/subParsers/headers.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ showdown.subParser('headers', function (text, options, globals) {
55

66
var headerLevelStart = (isNaN(parseInt(options.headerLevelStart))) ? 1 : parseInt(options.headerLevelStart),
77

8-
// Set text-style headers:
9-
// Header 1
10-
// ========
11-
//
12-
// Header 2
13-
// --------
14-
//
8+
// Set text-style headers:
9+
// Header 1
10+
// ========
11+
//
12+
// Header 2
13+
// --------
14+
//
1515
setextRegexH1 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm,
1616
setextRegexH2 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;
1717

src/subParsers/tables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ showdown.subParser('tables', function (text, options, globals) {
66
}
77

88
var tableRgx = /^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,
9-
//singeColTblRgx = /^ {0,3}\|.+\|\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n(?: {0,3}\|.+\|\n)+(?:\n\n|¨0)/gm;
9+
//singeColTblRgx = /^ {0,3}\|.+\|\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n(?: {0,3}\|.+\|\n)+(?:\n\n|¨0)/gm;
1010
singeColTblRgx = /^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;
1111

1212
function parseStyles (sLine) {

0 commit comments

Comments
 (0)