veged/shmakowiki — pull request #17 by diunko (2012-09-29 17:50:22+00:00)
Title: In-list extension blocks

There's a lot to discuss on how blocks inside lists should behave. What blocks are valid inside lists and how to treat them, e.g. headers, paragraphs?

Anyhow, here is a first take on implementation.
It behaves in somewhat pythonic way: extension block is treated as nested if opening extension mark has more spaces in front of it then containing list bullet has.
Spaces before statements inside extension block are cut off upto the point where starting extension mark lies.
Spaces before closing extension mark don't matter.

I.e. extension block here
```
* list
* something:
%%hljs
^^
var a=10;
^^^^
%%
```
gets translated into
```

list

something

var a=10;
^^

```