Skip to content

Commit

Permalink
Fixed: docsify render _..._ again as <em> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
upupming committed Oct 21, 2018
1 parent 4d0de8a commit 432d703
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ window.docsifyKatex = markdownit({html: true})
(function () {
function install(hook) {
hook.beforeEach(content => {
return window.docsifyKatex.render(content);
return `<pre>${window.docsifyKatex.render(content)}</pre>`;
});
hook.afterEach(function(html, next) {
next(html.slice(5, -6))
})
}

$docsify.plugins = [].concat(install, $docsify.plugins);
Expand Down

0 comments on commit 432d703

Please sign in to comment.