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});
marked will add
idhtml 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});