Skip to content

Enhancement: support loading multiple markdown sources via sourceUrls option #7

Description

@dpecos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions