Skip to content

Commit

Permalink
fix: don't add v-pre to pre-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jun 8, 2019
1 parent 42ce1bc commit bd033b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/markedRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ export default hooks => {
: `<span class="code-line">${escapedLine}</span>`
})
.join('')
res += `<div class="code-mask">${codeMask}</div>`
res += `<div${
opts.interpolate ? '' : ' v-pre'
} class="code-mask">${codeMask}</div>`
}

return `<div v-pre data-lang="${lang ||
''}" class="pre-wrapper">${res}</div>`
return `<div data-lang="${lang || ''}" class="pre-wrapper">${res}</div>`
}

return hooks.process('extendMarkedRenderer', renderer)
Expand Down

0 comments on commit bd033b6

Please sign in to comment.