Skip to content

How to bring JSON from Notion API into Unified? #166

Answered by ChristianMurphy
nvlgzr asked this question in Q&A
Discussion options

You must be logged in to vote

Very interesting, have you talked at all with the maintainer(s) of https://github.com/phuctm97/ntast and/or https://github.com/dragonman225/nast?

What are the pieces I'm going to need, and where should I look to find the simplest model(s) to follow in putting them together?

In short two plugins a parser and a compiler, breaking it down into utilities beyond those two is optional.
A parser in unified is something that takes in a string/text and outputs an AST, a compiler takes an AST an generates a string (or a svelte component).
There is some high level API info at https://github.com/unifiedjs/unified#processorparser and https://github.com/unifiedjs/unified#processorcompiler
There are s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants