Skip to content

Commit

Permalink
release 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tivie committed Nov 2, 2019
1 parent 5cc3fcc commit 483e51f
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 20 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="1.9.1"></a>
## [1.9.1](https://github.com/showdownjs/showdown/compare/1.9.0...1.9.1) (2019-11-02)


### Bug Fixes

* **openLinksInNewWindow:** add rel="noopener noreferrer" to links ([1cd281f](https://github.com/showdownjs/showdown/commit/1cd281f)), closes [#670](https://github.com/showdownjs/showdown/issues/670)



<a name="1.9.0"></a>
# [1.9.0](https://github.com/showdownjs/showdown/compare/1.8.7...1.9.0) (2018-11-10)

Expand Down
2 changes: 1 addition & 1 deletion dist/showdown.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/showdown.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "showdown",
"version": "1.9.0",
"version": "1.9.1",
"description": "A Markdown to HTML converter written in Javascript",
"author": "Estevão Santos",
"homepage": "http://showdownjs.com/",
Expand Down
10 changes: 5 additions & 5 deletions src/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ showdown.Converter = function (converterOptions) {
*/
setConvFlavor = setFlavor,

/**
* Metadata of the document
* @type {{parsed: {}, raw: string, format: string}}
*/
/**
* Metadata of the document
* @type {{parsed: {}, raw: string, format: string}}
*/
metadata = {
parsed: {},
raw: '',
Expand Down Expand Up @@ -107,7 +107,7 @@ showdown.Converter = function (converterOptions) {
'Please inform the developer that the extension should be updated!');
legacyExtensionLoading(showdown.extensions[ext], ext);
return;
// END LEGACY SUPPORT CODE
// END LEGACY SUPPORT CODE

} else if (!showdown.helper.isUndefined(extensions[ext])) {
ext = extensions[ext];
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ showdown.helper.padEnd = function padEnd (str, targetLength, padString) {
* POLYFILLS
*/
// use this instead of builtin is undefined for IE8 compatibility
if (typeof(console) === 'undefined') {
if (typeof console === 'undefined') {
console = {
warn: function (msg) {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion src/subParsers/anchors.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ showdown.subParser('anchors', function (text, options, globals) {

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

// handle reference-style shortcuts: [link text]
// These must come last in case you've also got [link test][1]
Expand Down
2 changes: 1 addition & 1 deletion src/subParsers/codeSpans.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ showdown.subParser('codeSpans', function (text, options, globals) {

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

if (typeof(text) === 'undefined') {
if (typeof text === 'undefined') {
text = '';
}
text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
Expand Down
2 changes: 1 addition & 1 deletion src/subParsers/hashHTMLBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ showdown.subParser('hashHTMLBlocks', function (text, options, globals) {

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

// prevent an infinite loop
Expand Down
14 changes: 7 additions & 7 deletions src/subParsers/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ showdown.subParser('headers', function (text, options, globals) {

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

// Set text-style headers:
// Header 1
// ========
//
// Header 2
// --------
//
// Set text-style headers:
// Header 1
// ========
//
// Header 2
// --------
//
setextRegexH1 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm,
setextRegexH2 = (options.smoothLivePreview) ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;

Expand Down
2 changes: 1 addition & 1 deletion src/subParsers/tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ showdown.subParser('tables', function (text, options, globals) {
}

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

function parseStyles (sLine) {
Expand Down

0 comments on commit 483e51f

Please sign in to comment.