markdown icon indicating copy to clipboard operation
markdown copied to clipboard

Implement `{: data-line="1"}` for setting block-level attributes

Open kjk opened this issue 4 years ago • 3 comments

## foo
{: data-line="1"}

should generate:

<h2 data-line="1" id="foo">
  foo
</h2>

babelmark results

This is a kramdown extension. Probably should be an extension.

kjk avatar Sep 15 '21 04:09 kjk

[ Quoting @.***> in "[gomarkdown/markdown] Implement `{:..." ]

foo

{: data-line="1"}

babelmark results

This is a kramdown extension. Probably should be an extension.

likely. Note that for mmark we already support such things (diff. syntax though, yeah! markdown)

miekg avatar Sep 15 '21 06:09 miekg

This would be hacking on the Attributes I've added a while back, but now they are detected by { data-line="1"}

miekg avatar Nov 05 '21 13:11 miekg

also kramdown allows these after block level elements, haven't been able to do that here...

miekg avatar Dec 11 '21 16:12 miekg