Hello all,
Here’s the idea I want to propose:
There is a class of plugins that do note-to-html rendering. For instance, you can imagine an extension that reads a note frontmatter and creates a nice contact card for it, with a nice HTML layout.
My idea for a plugin is to create a small language to make it easier to create HTML layouts from inside a note. Instead of relying on embedded HTML, the user has access to a slightly more expressive language to create layouts that are then rendered to HTML.
I’m imagining something similar to Typst and racket’s Scribble documentation system. The syntax would look like this
# Title
Regular note paragraph.
Insert a contact card:
@ContactCard(:name John :surname Smith)
@CenteredSection{
More markdown code that is rendered centered.
}
The “tags” (CenteredSection, ContactCard) map to Lisp functions that perform the rendering. The idea would be for the user to embed Lisp snippets inside their vault to create custom tags of their own. I explain the idea in more details here: Combining Lisp and Markdown for document editing
What do you guys think? Does this feel useful to anyone, or is writing HTML directly easy enough and it’s not worth the effort?