Parse markdown indented code block
问题 I am trying to parse Markdown using a grammar written with Parslet. However, I cannot get past indented code blocks because everything I tried so far got stuck in recursion. They look like this: This is a indented code block. Second line. Code block continues after blank line. There can be any number of chunks, separated by not more than one blank line. In order to solve this I wrote a minimal example wich replaces the lines (including \n ) with a and blank lines ( \n\n ) with spaces, eg: a