Skip to content

Commit 2c7944e

Browse files
Merge pull request #3 from meshcloud/feature/callout-emoji
Feature/callout emoji
2 parents d1f90d9 + 268fc88 commit 2c7944e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.4.0",
2+
"version": "0.5.0",
33
"name": "@meshcloud/notion-markdown-cms",
44
"engines": {
55
"node": ">=14"

Diff for: src/BlockRenderer.ts

+1-3
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":

Diff for: src/index.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import { SyncConfig } from "./SyncConfig";
2-
import { sync } from "./sync";
3-
import { RenderedDatabasePage } from "./RenderedDatabasePage";
1+
export { RenderedDatabaseEntry } from './RenderedDatabaseEntry';
2+
export { RenderedDatabasePage } from './RenderedDatabasePage';
3+
export { sync } from './sync';
4+
export {
5+
DatabaseConfig, DatabaseConfigRenderPages, DatabaseConfigRenderTable, SyncConfig
6+
} from './SyncConfig';
47

5-
export { SyncConfig, RenderedDatabasePage as RenderedPage, sync };

0 commit comments

Comments
 (0)