Add a syntax like
::: paragraph 0. paragraph 1. ::: ^block_id
to support more flexible block reference.
Maybe it will also influence a block style solution like annotation syntax:
::: .danger DONT divide any number with ZERO! ::: ^DivZeroError
Or use two same block id to sign up a block:
^abc Paragraph. ABC ^abc
Use case or problem
The existing block reference syntax looks like
Paragraph. ^block1 Paragraph 2 ^block2
But I want it support two or more paragraphs, such as a formula and its explain
::: $$ E^2 = m^2c^4 + c^2 p^2 $$ + $E$ energy + $m$ mess + $p$ momentum + $c$ speed of light ::: ^EinsteinFormula
I have using quote block to make them into one block element:
> $$ > E^2 = m^2c^4 + c^2 p^2 > $$ > + $E$ energy > + $m$ mess > + $p$ momentum > + $c$ speed of light ^EinsteinFormula
But it use a dirty semantic.
Current workaround (optional)
This syntax inspired by pandoc’s markdown.
Related feature requests (optional)
- Custom length of Parent and Child in list may be solved with the same method.