-
What I mean is, define a command that upon rendering will be replaced by some other markdown or html text, as the For example I would like to define I know you can use |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Two things come to mind:
|
Beta Was this translation helpful? Give feedback.
-
In addition to shortcodes, Lua filters are a great use case for this. For example, if you have markdown like this:
Then your filter can say
This simple filter will make "my special text" bold. But because you're in a full programming language, you can do pretty much anything you want. |
Beta Was this translation helpful? Give feedback.
-
Filters is the way to go :-) I have just written a small quarto extension, For a url, say Quartos documentation, you would need to add a key to your yaml: search-replace:
+myqurl: https://quarto.org/docs/extensions/filters.html Then you can use it in your md text, e.g.
|
Beta Was this translation helpful? Give feedback.
Two things come to mind: