Skip to content

Commit d9addb2

Browse files
feat: render emojis in callout block as strong elements
1 parent d1f90d9 commit d9addb2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/BlockRenderer.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ export class BlockRenderer {
122122
case "callout":
123123
return {
124124
lines:
125-
"> " +
126-
this.renderIcon(block.callout.icon) +
127-
" " +
125+
`> **${this.renderIcon(block.callout.icon)}**" `+ // render emoji as bold, this enables css to target it as `blockquote > strong:first-child`
128126
(await this.richText.renderMarkdown(block.callout.text)),
129127
};
130128
case "divider":

0 commit comments

Comments
 (0)