Hello Together,
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:
///attributes:class=para-class
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:
- paragraph
- list
- sublist
- blockquote
(extandable)
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.
Sample screen
Any comments and suggestions are welcome.