Closed TyOverby closed 10 years ago
Many environments are meant just to contain a single other environment. For example:
|list |item |math a + b = c |item Foo
In this case, having the item and equation blocks on different lines, and on different levels of indentation is more work for the author.
item
equation
I propose a new syntax for "immediate nested blocks" that would produce the same AST as the above example
|list |item/math a + b = c |item Foo
In this example, the argline for the item/math combo is empty for |item, and given to the |math environment.
|item
|math
This could be used in many other situations where a block contains only a single child environment.
|italic/bold This paragraph is both italic and bold
Implemented in 9c133d55306f66dbae19e237ae2166fa84bc07ff
Many environments are meant just to contain a single other environment. For example:
In this case, having the
item
andequation
blocks on different lines, and on different levels of indentation is more work for the author.I propose a new syntax for "immediate nested blocks" that would produce the same AST as the above example
In this example, the argline for the item/math combo is empty for
|item
, and given to the|math
environment.This could be used in many other situations where a block contains only a single child environment.