Skip to content

Markdown parser option #2

@Andste82

Description

@Andste82

marked will add id html attributes to each header element with its title as value.
but pdfmake has some problems with multiple identical id's.

=> can you provide a config object that will be passed to marked?

or just simple add the following option in your code:
const html = marked(markdown, {headerIds: false});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions