Markdown Function Call - a.k.a shortcodes #277
rochacbruno
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Today I've seem this https://github.com/iamgio/quarkdown
While I don't have plans to support this format, I think we can borrow the function call idea.
So I propose that on a markdown text, having
extra: functions: true
we must parse and support.We basically will use a very simple detection of
.{function} {params}
on the markdown pre-processing and execute it.How functions will get defined?
Options:
There are options https://github.com/rust-unofficial/awesome-rust#scripting
Or even, simply Tera.
Functions can be a file
templates/functions/youtube.tera
and inside it we place Tera template, just like a macro definitionBeta Was this translation helpful? Give feedback.
All reactions