Custom markdown ideas?


when writing texts about music, I write band names in uppercase, eg DEEP PURPLE instead of Deep Purple.

To be able to do some other formatting etc in the future, it would be helpful to mark the band names in the text with some custom markdown (or something similar).

First idea that came to mind was embedding the names in a shortcode , something like

{{< band >}}Deep Purple{{< /band >}}

but this makes the texts sort of hard to read.

Doing most of my programming in Perl, the next idea was to embed the band names in some chars and try to process them with regular expressions, something like

>>Deep Purple<<

but getting a regexp to work under all circumstances is difficult to master.

I found the old post " Implement custom markdown dialect - Where to start?" but it seems I would have to change hugo internals.

Anyone has a better idea?

Does this mean you want to apply CSS rules to band name?

Is the band name inline or a stand-alone block element (e.g., heading, paragraph)?


at the moment, a way to apply a CSS class would be enough. The band names normally appear within text paragraphs, something like

The band consited of Jon Lord on piano, organ and keyboards, his DEEP PURPLE bandmates David Coverdale and Glenn Hughes, … and last but not least SPENCER DAVIS GROUP members Ray Fenwick on guitar and Pete York on drums.

This is cheating, but functional.


The [The Goo Goo Dolls](band) was formed in 1986.


a[href="band"] {
  color: darkgreen;
  font-weight: bold;
  pointer-events: none;
  text-decoration: none;
  text-transform: uppercase;




@jmooring Sometimes cheating does the trick :grinning:

Btw, the cool thing with your suggestion is that when using “render-link.html” there’s much more possible than just adding a CSS class - like embeddig the “.Destination” in HTML-tags or auto-linking to a tag page and other stuff.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.