Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

notion-content-render

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notion-content-render - npm Package Compare versions

Comparing version 0.2.10 to 0.2.11

1

dist/index.d.ts

@@ -36,2 +36,3 @@ import type { Block, HeadingOneBlock, HeadingThreeBlock, HeadingTwoBlock, ParagraphBlock, RichText, ToDoBlock, ToggleBlock } from "@notionhq/client/build/src/api-types";

todo: (checked: boolean, content: R | undefined, block: ToDoBlock) => R;
link: (content: R, href: string, block: RichText) => R;
unsupported: (block: Block) => R;

@@ -38,0 +39,0 @@ };

@@ -55,2 +55,5 @@ "use strict";

var content = styleFactory.text(richText.text.content);
if (richText.href) {
content = styleFactory.link(content, richText.href, richText);
}
if (formatters.length === 0) {

@@ -57,0 +60,0 @@ return content;

@@ -21,4 +21,5 @@ "use strict";

todo: function (checked, content) { return "[" + (checked ? "x" : " ") + "] " + content; },
link: function (children, href) { return "[" + children + "](href)"; },
unsupported: function () { return "unsupported"; }
};
exports["default"] = MarkdownStyleFactory;

@@ -76,4 +76,8 @@ "use strict";

}; },
link: function (Content, href) { return function () {
return (react_1["default"].createElement("a", { href: href },
react_1["default"].createElement(Content, null)));
}; },
unsupported: function () { return function () { return react_1["default"].createElement(react_1["default"].Fragment, null); }; }
};
exports["default"] = ReactStyleFactory;

2

package.json
{
"name": "notion-content-render",
"version": "0.2.10",
"version": "0.2.11",
"description": "A library to render notion content structure to React or MD",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc