TyOverby / Pipe

Mozilla Public License 2.0
21 stars 1 forks source link

Chainable Environments #5

Closed TyOverby closed 10 years ago

TyOverby commented 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.

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.

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
TyOverby commented 10 years ago

Implemented in 9c133d55306f66dbae19e237ae2166fa84bc07ff