#917·parsedown

extension to add css classnames to inline elements?

Author: frumbertCreated Jun 14, 2025Updated May 25, 2026

In one markdown implementation I saw, there was a handy extension to allow adding classnames and attributes to inline elements, e.g.

![some image](path-to-image.jpg){.shadow.center [data-zoom] #id}

where immediately after the block there's a curly bracket containing values. The above example would have yielded

<img alt='some image' src='path-to-image.jpg' class='shadow center' data-zoom id='id' />

How could this be achieved within Parsedown?