Fornax icon indicating copy to clipboard operation
Fornax copied to clipboard

Does Fornax Support Shortcodes for Markdown?

Open bytesource opened this issue 3 years ago • 3 comments

Hi,

I'd like to ask if Fornax has some functionality akin to Hugo's shortcode system (https://gohugo.io/content-management/shortcodes/)?

These are snippets placed inside Markdown to call a custom function that outputs HTML. This way you can add anything to your Markdown sections and e.g. turn a normal image into an adaptive image using srset and different image sizes.

Cheers,

Stefan

bytesource avatar Jun 10 '21 04:06 bytesource

Is this the right place to ask these questions, or is there another preferred channel for this?

I'd like to dive a little deeper into Fornax, but certainly don't want to pollute the issue tracker along the way.

bytesource avatar Jun 22 '21 03:06 bytesource

Explicitly, no, although I don't think it would be terribly difficult to write a helper function to parse short codes as part of a generator.

I'm curious to try that out.

drewknab avatar Jul 01 '21 04:07 drewknab

Thanks, that's what I thought, but I wanted to make sure I hadn't overlooked anything.

I like the simplicity of Fornax that allows me to concentrate on the task at hand instead of having to learn several levels of abstractions first.

bytesource avatar Jul 01 '21 05:07 bytesource