I have a pandoc markdown file which has a lot of code. I want to extract all the code bits from file preferably using sed. The syntax of code in pandoc is three or more ` signs to start and finish the code segment.
```
Code is here
```
I can extract one line but I have no way of extracting between markers.

