Skip to content

Explain how "macros" work in djot#212

Open
matklad wants to merge 1 commit into
jgm:mainfrom
matklad:syntax-extensions
Open

Explain how "macros" work in djot#212
matklad wants to merge 1 commit into
jgm:mainfrom
matklad:syntax-extensions

Conversation

@matklad

@matklad matklad commented Feb 20, 2023

Copy link
Copy Markdown
Contributor

It's not obvious that djot is, in fact, an extensible format. People are looking for macros, or syntax extension, not find them, and think that it's basically markdown situation.

I think a nice way to improve this would be to have a "Syntax Extensions" section in the docs, which basically says that djot doesn't really need those.

@jgm

jgm commented Feb 21, 2023

Copy link
Copy Markdown
Owner

This is a good idea, though I might want to think more about the content.

Note also: the section on Filters in https://github.com/jgm/djot.js/blob/main/doc/djot.md

@dereuromark

dereuromark commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

I dont know much about js and whats possible.
In oop language like PHP an event system can be very flexible and powerful for extension
See https://github.com/php-collective/djot-php/blob/master/docs/cookbook.md examples.

Maybe some of these ideas are useful to adapt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants