[OT] Markdown: split a file along headers?
I know this is not actually related to most of what we discuss here, but I figure there's probably quite a few people who use markdown extensively here. And I did put it in Random.
I have a markdown file that has a bunch of 2nd level headers. I would like to have a bunch of smaller markdown files, each of which consists of one of those headers. Is there any reasonable way to do this easily? I'm experimenting with the differences between writing a large document (a novel) as a single markdown document and as a series of scenes, because there are a number of ways to combine smaller files.
I keep thinking there must be a pandoc invocation for this, but I can't find it.
Any suggestions? Command-line is fine, writing python code is not.
It looks like you're new here. If you want to get involved, click one of these buttons!