Public
Edited
May 22, 2023
Insert cell
Insert cell
Insert cell
Insert cell
micromarkOptions = ({
extensions: [micromarkExtensionGfm.gfm()],
htmlExtensions: [micromarkExtensionGfm.gfmHtml()]
})
Insert cell
{
const tree = fromMarkdown(markdownGfmText, {
extensions: [micromarkExtensionGfm.gfm()],
mdastExtensions: [mdastUtilGfm.gfmFromMarkdown()],
})

const text = toMarkdown(tree, {
extensions: [mdastUtilGfm.gfmToMarkdown()],
})

return { tree, text }
}
Insert cell
markup = micromark(markdownText)
Insert cell
ast = fromMarkdown(markdownText)
Insert cell
markupGfm = micromark(markdownGfmText, micromarkOptions)
Insert cell
astGfm = fromMarkdown(markdownGfmText, micromarkOptions)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more