Generate one large file from smaller files?

I would like to generate one large file from smaller files (like sections). Is there an easy way to do this? Something like an import command so the main file would look like:

Some text…
import section_1.md
Some more text…
import section_2.md
Some more text…

Sorry, do you want to split a long file into smaller ones as you say in the title, or combine smaller ones into one as you say in the body? Or both?

I’ve moved this thread from the “Developers & API” category to the “Help” category because it sounds like a general help request.

1 Like

If I understand correctly, this request may be of interest: Note Combo-Linker

I am currently writing a long file that I’d like to (manually) split into smaller files. Then combine the smaller files into one long file

Longform, perhaps?

You can embed the smaller notes (if you want to keep them).

The core Note Composer plugin might interest you, or the community Note Refactor plugin.

I changed the post title from “Break long document into many smaller markdown files?” to “Generate one large file from smaller files?”

Embed is closest to what I’m looking for. The only problem is it doesn’t import the note directly. It has some formatting. It has horizontal lines above and below and also the note title centered and bold at the top.

The formatting can be removed with a CSS snippet. You may find some help by searching the forum — I’ve seen others ask about removing at least parts of it.