Skip to content

Does Fornax Support Shortcodes for Markdown? #93

Open

Description

@bytesource

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

Activity

  1. bytesource commented on Jun 22, 2021

    @bytesource
    Author

    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.

  2. drewknab commented on Jul 1, 2021

    @drewknab
    Contributor

    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.

  3. bytesource commented on Jul 1, 2021

    @bytesource
    Author

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions