Scheme as a markup language - any experience with Skirbilo/Skribe?

Scribilo is definitely a step up. I can’t imagine how to embed a function call in org. I know it’s possible, but I can’t predict it because org is syntax salad. Scribilo looks pretty close to Lisp.

Part of the reason markup is successful for user generated content is because it doesn’t do anything. Who wants their server to expand Lisp in comments? Unless there’s a symbol whitelist and sandboxed interpreters, I could never.

However, we do want to attach metadata, which would only be interpreted by whitelisted functions anyway. It could make a markup as versatile as Lisp or XML for frontends.

As far as not needing to delimit both sides of everything, that requires figuring out a way to annotate ranges and to annotate deep ancestors and children. The solutions are either anchors or counting expressions. Prefix and postfix could be part of an ancestor versus children modification duality.

I wish this was fifteen years ago and would matter :smiling_face_with_tear:

There is this, which I imagine would make things a bit easier:

 ‘#:pure’
      Create a “pure” module, that is a module which does not
      contain any of the standard procedure bindings except for the
      syntax forms.  This is useful if you want to create “safe”
      modules, that is modules which do not know anything about
      dangerous procedures.

From:

And you could do the same with a carefully written R7RS-small library defined with define-library, no?

I am not proficient enough to say how, but you generally should be able to achieve this in skribilio, with different syntax obviously.

skribilio allows access to the AST of the document.

The documentation only talks about reading the tree to create text.
But since scheme allows mutating values as well, you should be able to attach “meta data” to nodes of the tree, including tree traversal like “three nodes up”.