A SpellBlock is a named block an author writes in markdown. The markdown around it renders as markdown; the block renders through a template.
The words stay in the document and the markup stays in the template.
An author writes this, and dj-spellbook renders that:
{~ alert type="warning" ~}
Make a backup **first**.
{~~}
spellbook-engine is the syntax engine. It splits a document into plain markdown and block segments, and refuses a document the syntax forbids. It renders nothing. It is a Rust crate with no dependencies, and a Python module built from the same code. One engine means every host agrees on what a document means. The engine
dj-spellbook renders a document into HTML inside a Django project. It asks the engine where each block starts and ends, renders the markdown with markdown-it-py and each block with a Django template. It ships three blocks, alert, card and accordion, and finds the blocks your own apps define. Quick start
Both are MPL-2.0.