Public
Edited
Jul 9, 2024
5 stars
Insert cell
Insert cell
djot`
Djot is a light markup syntax by [John MacFarlane](https://en.wikipedia.org/wiki/John_MacFarlane_(philosopher)) (the original author of Pandoc and one of the people behind CommonMark) that tries to fix certain warts that exist in markdown:

> _It derives most of its features from commonmark, but it fixes a few things that make commonmark's syntax complex and difficult to parse efficiently. It is also much fuller-featured than commonmark, with support for definition lists, footnotes, tables, several new kinds of inline formatting (insert, delete, highlight, superscript, subscript), math, smart punctuation, attributes that can be applied to any element, and generic containers for block-level, inline-level, and raw content. The project began as an attempt to implement some of the ideas I suggested in [Beyond Markdown](https://johnmacfarlane.net/beyond-markdown.html)._

For more information, see: [https://djot.net/](https://djot.net/)

This notebook defines a \`djot\` [tagged template](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates). Import as:

~~~
import {djot} from "@jobleonard/djot"
~~~

Then use ${"``djot` ... ` ``"} to generate \`HTML\`.`
Insert cell
djot = {
const _djot = await require('@djot/djot@0.3.1/dist/djot.js');
return ttemplatify(str => html`${_djot.renderHTML(_djot.parse(str))}`)
}
Insert cell
import {ttemplatify} from "@jobleonard/ttemplatify"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more