mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
reduce indent
This commit is contained in:
@@ -71,8 +71,7 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
let trimmedLine = splitted[i].trim()
|
let trimmedLine = splitted[i].trim()
|
||||||
if (trimmedLine.match('```')){
|
if (trimmedLine.match('```')){
|
||||||
isMarkdownInCode = !isMarkdownInCode
|
isMarkdownInCode = !isMarkdownInCode
|
||||||
} else {
|
} else if (isMarkdownInCode === false && trimmedLine.match(/^# +/)) {
|
||||||
if(isMarkdownInCode === false && trimmedLine.match(/^# +/)) {
|
|
||||||
title = trimmedLine.substring(1, trimmedLine.length).trim()
|
title = trimmedLine.substring(1, trimmedLine.length).trim()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user