Questions about Markdown render hooks

It seems like the shortcode and partial system is nearly always ‘better’ than standard markdown hooks, for those us with the patience to implement and use them well.

Is Hugo using shortcode-like logic to render the default markdown hooks? How extensible and customizable is that?

For example does/could Hugo optionally implement responsive images under the hood in the default ‘theme,’ as a config-flagable feature accessed via standard/default markdown or shortcode syntaxes?

I think most of us are homebaking things like that in custom themes as of now, but it seems like there are bunch of opportunities for standardized inclusions in ‘vanilla’ Hugo

I think that this is best handled by a module based on Hugo’s embedded image render hook.

The module should contain:

  1. A partial template
  2. An image render hook that calls the partial template
  3. A shortcode that calls the partial template
  4. A config file for module parameters including break points, preferred image formats, etc.
  5. Instructions for installation, updating, removal, and configuration.

In the above, item 3 is not required, but nice to have because it would allow you to override default behavior via arguments.

There are several of these modules floating around already.