Skip to content

Commit b5f180c

Browse files
committed
fix: lint
1 parent 8245bda commit b5f180c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/core/render/compiler/blockquote.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ export const blockquoteCompiler = ({ renderer }) =>
1616
const calloutType = calloutData[2].toLowerCase(); // "tip"
1717

1818
// Remove the callout mark from the paragraph raw text
19-
firstParagraph.raw = firstParagraph.raw.replace(calloutMark, '').trimStart();
19+
firstParagraph.raw = firstParagraph.raw
20+
.replace(calloutMark, '')
21+
.trimStart();
2022
if (firstParagraph.tokens && firstParagraph.tokens.length > 0) {
2123
firstParagraph.tokens.forEach(t => {
22-
if (t.raw) {t.raw = t.raw.replace(calloutMark, '').trimStart();}
23-
if (t.text) {t.text = t.text.replace(calloutMark, '').trimStart();}
24+
if (t.raw) {
25+
t.raw = t.raw.replace(calloutMark, '').trimStart();
26+
}
27+
if (t.text) {
28+
t.text = t.text.replace(calloutMark, '').trimStart();
29+
}
2430
});
2531
}
2632

0 commit comments

Comments
 (0)