mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
build
This commit is contained in:
parent
173ad51b05
commit
17222b3d5a
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.js.map
vendored
BIN
dist/showdown.js.map
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js.map
vendored
BIN
dist/showdown.min.js.map
vendored
Binary file not shown.
|
@ -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]);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
|
|
@ -381,6 +381,8 @@ showdown.helper.padEnd = function padEnd (str, targetLength, padString) {
|
|||
* @returns {string}
|
||||
*/
|
||||
showdown.helper.unescapeHTMLEntities = function (txt) {
|
||||
'use strict';
|
||||
|
||||
return txt
|
||||
.replace(/"/g, '"')
|
||||
.replace(/</g, '<')
|
||||
|
|
Loading…
Reference in New Issue
Block a user