Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Inline Attribute Lists #566

Open
pravin opened this issue Sep 14, 2019 · 1 comment
Open

Support Inline Attribute Lists #566

pravin opened this issue Sep 14, 2019 · 1 comment

Comments

@pravin
Copy link

pravin commented Sep 14, 2019

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 - gohugoio/hugo#1585

@jmafc
Copy link

jmafc commented Jul 8, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants