Skip to content

Commit

Permalink
fix: data-tomark-pass appear when converting (fix: #511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohee Lee authored and sohee-lee7 committed May 27, 2019
1 parent 9cff5e3 commit fdae46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/convertor.js
Expand Up @@ -128,7 +128,7 @@ class Convertor {

$wrapperDiv.find('code, pre').each((i, codeOrPre) => {
const $code = $(codeOrPre);
$code.html($code.html().replace(/<([a-zA-Z0-9]+\s*) data-tomark-pass >/g, '<$1>'));
$code.html($code.html().replace(/<([\S ]+\s*) data-tomark-pass >/g, '<$1>'));
});

renderedHTML = $wrapperDiv.html();
Expand Down

0 comments on commit fdae46e

Please sign in to comment.