I can't seem to get it to work. Have you tried it on a file with only 2 header levels and with no content before the first ##?

Reply to this note

Please Login to reply.

Discussion

Let me check...

I think it depends on the implementation of the new line in the *.md. Here's the fix:

`preg_split("/[\n\r]##\s/", $markdown)`

Okay, I'll try that and get back to you.