Hi,

Using markdown, I've often been frustrated by

  1. Its flat/non-recursive/non-nested nature, by which I mean that you mostly cannot write "arbitrary" markdown inside most elements, and if you can, you have to be very careful with whitespaces/indentation/etc.
  2. The impossibility to easily interlink to arbitrary parts of the document.
To solve both issues, I'd like to propose an extension that allows "simply" using braces (or some other punctuation pair) to allow nesting, with an option to tag/add attributes to the contents like that.
In some more details:
There could be a point to be made to put the attributes before the content, but I'm not sure what kind of form that would take. Maybe something like `#id{content}{.class}` could be used: only the identifier can come before the content, and has to be a valid identifier (alphanum, underscore, dash)?

I think this syntax would not clash with that much of what's already existing: mostly just the already existing attribute syntax. A potential solution to that would be to use a different character pair for nested blocks, but `[]` is already used a lot.

I've looked at implementing that as a custom filter, but I think it has to be an extension baked in pandoc itself.

Cheers


--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5573f042-48a4-4115-8b1d-a86c13eb319an%40googlegroups.com.