blackfriday icon indicating copy to clipboard operation
blackfriday copied to clipboard

Support Inline Attribute Lists

Open pravin opened this issue 4 years ago • 1 comments

Kramdown and Maruku have the ability to add a class or id to a block. These Inline Attribute Lists can be real handy and allow one to structure code like so,

A simple paragraph with an ID attribute.
{: #para-one}

> A blockquote with a title
{:title="The blockquote title"}
{: #myid}

I'm transitioning a fairly large site from nanoc to hugo and was looking for a solution. Looks like others would like this feature too - https://github.com/gohugoio/hugo/issues/1585

pravin avatar Sep 14 '19 20:09 pravin

I'd like this feature too. I have three pages in a Python-Markdown application that use this. Fortunately, two of the pages use it for id attributes in heading elements, so those can be easily edited from {: #anchor} to {#anchor}. But the third page uses it for id attributes for list elements (over 40 of them), which include markdown [Title](url) in almost every one of them, so it won't be easy to reformat them.

jmafc avatar Jul 08 '20 01:07 jmafc