mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Remove a disused condition
This commit is contained in:
@@ -259,7 +259,7 @@ export default class MarkdownPreview extends React.Component {
|
|||||||
this.refs.root.contentWindow.document.body.setAttribute('data-theme', theme)
|
this.refs.root.contentWindow.document.body.setAttribute('data-theme', theme)
|
||||||
|
|
||||||
const codeBlocks = value.match(/(```)(.|[\n])*?(```)/g)
|
const codeBlocks = value.match(/(```)(.|[\n])*?(```)/g)
|
||||||
if (codeBlocks !== null && codeBlocks.length > 0) {
|
if (codeBlocks !== null) {
|
||||||
codeBlocks.forEach((codeBlock) => {
|
codeBlocks.forEach((codeBlock) => {
|
||||||
value = value.replace(codeBlock, encodeHTMLEntities(codeBlock))
|
value = value.replace(codeBlock, encodeHTMLEntities(codeBlock))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user