1
0
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:
asmsuechan
2017-03-27 03:15:05 -07:00
parent 003d8a1b21
commit 71464112ce

View File

@@ -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))
}) })