File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,13 @@ export class BlockRenderer {
63
63
switch ( block . type ) {
64
64
case "paragraph" :
65
65
return await this . richText . renderMarkdown ( block . paragraph . text ) ;
66
+ // note: render headings +1 level, because h1 is reserved for page titles
66
67
case "heading_1" :
67
- return "# " + await this . richText . renderMarkdown ( block . heading_1 . text ) ;
68
+ return "## " + await this . richText . renderMarkdown ( block . heading_1 . text ) ;
68
69
case "heading_2" :
69
- return "## " + await this . richText . renderMarkdown ( block . heading_2 . text ) ;
70
+ return "### " + await this . richText . renderMarkdown ( block . heading_2 . text ) ;
70
71
case "heading_3" :
71
- return "### " +
72
+ return "#### " +
72
73
await this . richText . renderMarkdown ( block . heading_3 . text ) ;
73
74
case "bulleted_list_item" :
74
75
return (
You can’t perform that action at this time.
0 commit comments