Hi Chris-
I haven’t looked at your branch (yet). Given that there are a number of popular extensions to Markdown, perhaps rather than having a number of different classes, we could have a flag that enables the various extensions we support? That way, it would not inadvertently break things for folks who weren’t expecting those syntaxes?
Bill
On Apr 7, 2020, at 2:44 AM, Chris Angelico rosuav@gmail.com wrote:
See branch: rosuav/markdown-attribute-syntax
There's a not-very-well-known syntax supported by some Markdown parsers (including GitHub Flavored Markdown) that allows HTML attributes to be attached to a paragraph of text:
Text goes here blah blah blah {: someattr=value otherattr=otherval}
This is extremely handy for making small adjustments to the display of something, particularly with shorthands for class and ID, for use in CSS:
{: .someclass} {: #someid}
However, it's not well documented and I can't find a standard anywhere for it.
It is something that I personally would find extremely useful, and am currently implementing by subclassing the Markdown module and tweaking the parser.
Would anyone else find this of value? Conversely, would anyone find that this causes issues?
ChrisA