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
  • RFC: Attributes in... Chris Angelico

Reply via email to