Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
bucklespring
Advanced tools
An experimental library for interacting with Notion content as an MDAST
A library & command-line utility for converting Notion documents into Markdown (Mdast).
Bucklespring is built on Remark & Unified and so is fully compatible with all tools & plugins in the Remark ecosystem.
More examples can be found in ./examples/
const { notionToMdast } = require('bucklespring')
const { getNotionPage } = require('bucklespring/helper/notion-api')
const notionPage = JSON.stringify(await getNotionPage("d08e52c1-1f05-4c27-85bc-e215261fa4dd"))
const tree = await unified()
.use(notionToMdast)
.use(serializeMarkdown)
.use(frontMatter)
.process(notionPage)
console.log(tree.toString())
}
# Export a page
npx bucklespring notion export-page d08e52c1-1f05-4c27-85bc-e215261fa4dd
# Export a page using its frontmatter as a filename.
npx bucklespring notion export-collection --filename "[title].md" d08e52c1-1f05-4c27-85bc-e215261fa4dd
# Export a collection with a collection-view
npx bucklespring notion export-collection 53511a6a-726e-47db-82cc-dac166f31466 91d6a116-7f4f-44d3-ba10-6f96267da034
# Export a collection using their frontmatter for filenames
npx bucklespring notion export-collection --dirname test --filename "[id].md" 53511a6a-726e-47db-82cc-dac166f31466 91d6a116-7f4f-44d3-ba10-6f96267da034
Simply put: Until Notion's full API rollout, a major version seems irresponsible as the unofficial API may change. However! 0.x.x versions are as stable as any other unofficial API client.
I agree! Reading an abstract-syntax-tree (AST) is an important first-step in being able to render something from a CMS. Both more traditional CMSes and block-based CMSes use a process such as this one for rendering.
With this library, you can render into HTML (via Rehype) or plug-and-play with any other Unified-compatible format.
An important concept in bucklespring
is the Kitchen Sink, which is used as a Mock.
This is a real page on Notion which includes many different inline block components.
Its purpose is to validate that all of the converters
are doing their jobs correctly.
Currently there is only one kitchen sink - although this is tested against other
The easiest way to develop bucklespring
is using the Kitchen Sink boilerplate.
FAQs
An experimental library for interacting with Notion content as an MDAST
We found that bucklespring demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.