Split a page at headings
journal-split-pageSplit a large Foundry journal page into one page per heading section, preserving markup. Content before the first heading forms its own page; new pages are placed after the source page.
Instructions
Split a large text page into one page per section, cut at headings, inside Foundry so the content never crosses the bridge. The markup of each section is kept as it was. Content before the first heading becomes a page of its own. The new pages appear right behind the source page, which is kept unless deleteOriginal is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Split at headings h1 up to this level, 1 to 6 (default 1). Use 2 when sections are h2. | |
| pageId | Yes | The text page to split. | |
| journalId | Yes | Id of the journal, from list-journals. | |
| namePrefix | No | Put this in front of every new page name, e.g. "Chapter 2:". | |
| deleteOriginal | No | Delete the source page afterwards (default false). Check the result first. |