notion-content-render
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -64,9 +64,9 @@ "use strict"; | ||
function toBulletListItem(bulletItem) { | ||
var bulletItemContent = toRichText(bulletItem); | ||
var bulletItemContent = toRichTextBlock(bulletItem); | ||
return styleFactory.bulletListItem(bulletItemContent); | ||
} | ||
function toBulletList(block) { | ||
var text = block.bulleted_list_item.text; | ||
return styleFactory.bulletList(text.map(toBulletListItem)); | ||
} | ||
// function toBulletList(block: BulletedListItemBlock): B { | ||
// const { text } = block.bulleted_list_item; | ||
// return styleFactory.bulletList(text.map(toBulletListItem)); | ||
// } | ||
return { | ||
@@ -85,3 +85,3 @@ renderRichText: toRichTextBlock, | ||
case exports.BLOCK_TYPES.BULLETED_LIST_ITEM: | ||
return toBulletList(block); | ||
return toBulletListItem(block.bulleted_list_item.text); | ||
default: | ||
@@ -88,0 +88,0 @@ return styleFactory.unsupported(block); |
{ | ||
"name": "notion-content-render", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "A library to render notion content structure to React or MD", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13683