Hi can someone help find why my default markdown is not working please here is the pen:?
It’s because marked
treats indentation as significant and space is also significant in string template literals. Therefore, this works:
marked(`
## This is a sub-heading...
`);
And this doesn’t:
marked(`
## This is a sub-heading...
`);
I hope that helps!
EDIT: Technically speaking both work because it’s what marked
is expected to do, it’s just that your expectations are different.
thank you, for the help !