Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown parser option #2

Open
Andste82 opened this issue May 9, 2022 · 0 comments
Open

Markdown parser option #2

Andste82 opened this issue May 9, 2022 · 0 comments

Comments

@Andste82
Copy link

Andste82 commented May 9, 2022

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});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant