I want wo present here the idea of an Attributes content plugin, I developed at home.
This plugin registers a new block rule Attributes. The tokenizer looks for a one - liner like:
The content after the colon is arbitrary but should be a comma-separated list of attributes (being a class name here)
The attributes are then applied to the HTML node generated by the md after the block. For instance
///attributes:class=para-class This is a paragraph
applies the class attribute to the paragraph after it.
At the moment the following block types are supported:
I use this plugin at the moment to continue an ordered list with a start attribute, to remove the bullet icons of lists and to color the background of note elements.
Any comments and suggestions are welcome.