Description
Currently only a single markdown file can be loaded via the sourceUrl option. There is no way to compose a presentation from several separate markdown files without concatenating them manually.
Proposed API
Add a sourceUrls (plural) option that accepts an array of URLs. The files are fetched and concatenated (in order) before parsing:
mdeck.createSlideshow({
sourceUrls: ['intro.md', 'chapter1.md', 'chapter2.md', 'outro.md']
});
Use cases
- Reusable slide libraries (e.g. a shared title-slide template)
- Per-chapter files assembled into one deck
- Injecting auto-generated slides alongside hand-written ones
Ported from gnab/remark#573
Description
Currently only a single markdown file can be loaded via the
sourceUrloption. There is no way to compose a presentation from several separate markdown files without concatenating them manually.Proposed API
Add a
sourceUrls(plural) option that accepts an array of URLs. The files are fetched and concatenated (in order) before parsing:Use cases
Ported from gnab/remark#573