Fix style
This commit is contained in:
parent
4b961a9b69
commit
824e64ae48
4 changed files with 7 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ renderer.heading = function (text, level) {
|
|||
renderer.code = function (code, lang) {
|
||||
const hl = Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup)
|
||||
|
||||
return `<pre><code class="lang-${lang}" data-lang="${lang}">${hl}</code></pre>`
|
||||
return `<pre data-lang="${lang}"><code class="lang-${lang}">${hl}</code></pre>`
|
||||
}
|
||||
marked.setOptions({ renderer })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue