Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
tivie committed Dec 23, 2017
1 parent 173ad51 commit 17222b3
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 36 deletions.
126 changes: 98 additions & 28 deletions 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.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/showdown.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions src/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ showdown.Converter = function (converterOptions) {
// doc.innerHTML = doc.innerHTML.replace(/\[[\S\t ]]/);

var nodes = doc.childNodes,
mdDoc = '';
mdDoc = '';

for (var i = 0; i < nodes.length; i++) {
mdDoc += parseNode(nodes[i]);
Expand Down Expand Up @@ -536,8 +536,6 @@ showdown.Converter = function (converterOptions) {
// reference URIs must also be escaped
txt = txt.replace(/^ {0,3}\[([\S \t]*?)]:/gm, '\\[$1]:');



return txt;
}

Expand Down Expand Up @@ -862,7 +860,7 @@ showdown.Converter = function (converterOptions) {

// if data-language attribute is not defined, then we look for class language-*
if (language === '') {
var classes = pres[i].firstChild.className.split(" ");
var classes = pres[i].firstChild.className.split(' ');
for (var c = 0; c < classes.length; ++c) {
var matches = classes[c].match(/^language-(.+)$/);
if (matches !== null) {
Expand Down
2 changes: 2 additions & 0 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ showdown.helper.padEnd = function padEnd (str, targetLength, padString) {
* @returns {string}
*/
showdown.helper.unescapeHTMLEntities = function (txt) {
'use strict';

return txt
.replace(/&quot;/g, '"')
.replace(/&lt;/g, '<')
Expand Down

0 comments on commit 17222b3

Please sign in to comment.