Ignore block attributes
Hugo allows defining classes for certain HTML elements, if this is in the config:
markup:
goldmark:
parser:
attribute:
block: true
Enable custom attribute support for titles and blocks by adding attribute lists inside single curly brackets ({.myclass class="class1 class2" }) and placing it after the Markdown element it decorates, on the same line for titles NOTE: this should read "headings" and on a new line directly below for blocks.
A blockquote with a CSS class:
> foo
> bar
{.myclass}
hugo-i18n should be taught to omit these class definitions from strings. It would be nice, if even class definitions for headings on the same line could be omitted and then the string reconstructed correctly in the generation phase.