Skip to content

Commit

Permalink
🗜️ build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkedJS bot committed Nov 5, 2022
1 parent 44a2a23 commit 1a87b9f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/marked.cjs
Expand Up @@ -440,7 +440,7 @@ var Tokenizer = /*#__PURE__*/function () {
return {
type: 'code',
raw: raw,
lang: cap[2] ? cap[2].trim() : cap[2],
lang: cap[2] ? cap[2].trim().replace(this.rules.inline._escapes, '$1') : cap[2],
text: text
};
}
Expand Down Expand Up @@ -686,8 +686,8 @@ var Tokenizer = /*#__PURE__*/function () {
type: 'def',
tag: tag,
raw: cap[0],
href: cap[2],
title: cap[3]
href: cap[2] ? cap[2].replace(this.rules.inline._escapes, '$1') : cap[2],
title: cap[3] ? cap[3].replace(this.rules.inline._escapes, '$1') : cap[3]
};
}
};
Expand Down
6 changes: 3 additions & 3 deletions lib/marked.esm.js
Expand Up @@ -413,7 +413,7 @@ class Tokenizer {
return {
type: 'code',
raw,
lang: cap[2] ? cap[2].trim() : cap[2],
lang: cap[2] ? cap[2].trim().replace(this.rules.inline._escapes, '$1') : cap[2],
text
};
}
Expand Down Expand Up @@ -681,8 +681,8 @@ class Tokenizer {
type: 'def',
tag,
raw: cap[0],
href: cap[2],
title: cap[3]
href: cap[2] ? cap[2].replace(this.rules.inline._escapes, '$1') : cap[2],
title: cap[3] ? cap[3].replace(this.rules.inline._escapes, '$1') : cap[3]
};
}
}
Expand Down
6 changes: 3 additions & 3 deletions lib/marked.umd.js
Expand Up @@ -442,7 +442,7 @@
return {
type: 'code',
raw: raw,
lang: cap[2] ? cap[2].trim() : cap[2],
lang: cap[2] ? cap[2].trim().replace(this.rules.inline._escapes, '$1') : cap[2],
text: text
};
}
Expand Down Expand Up @@ -688,8 +688,8 @@
type: 'def',
tag: tag,
raw: cap[0],
href: cap[2],
title: cap[3]
href: cap[2] ? cap[2].replace(this.rules.inline._escapes, '$1') : cap[2],
title: cap[3] ? cap[3].replace(this.rules.inline._escapes, '$1') : cap[3]
};
}
};
Expand Down
2 changes: 1 addition & 1 deletion marked.min.js

Large diffs are not rendered by default.

0 comments on commit 1a87b9f

Please sign in to comment.