|
|
|
|
|
by chrismorgan
1811 days ago
|
|
Yeah, nesting inline markup is definitely something I’d want to add. Note that code styling in a link is actually possible, just convoluted: Using |foo|__.
.. |foo| replace:: substitution with the ``replace`` directive
__ https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#substitution-definitions
Funny thing is that, from what I recollect of investigating this matter a decade ago, there was never any fundamental objection to nested inline markup in reStructuredText, it just… hasn’t happened. |
|
The main implementation of reStructuredText is a custom parser, which might be a hassle to modify to accomodate all cases of nesting, including duplicate ones like: A B A text b a a.
But perhaps all the difficulty in this stems from making the symbols used for starting an inline markup the same as for ending it. Otherwise it would be trivial to count opening and closing "parentheses".