Tony Brix
Tony Brix
This is called a [setext heading](https://spec.commonmark.org/0.31.2/#setext-headings). It happens because you don't have blank lines around hrs. [Problem demo](https://marked.js.org/demo/?text=%23%23%23%20heading%203%0A---%0ASome%20text%0AMultiple%20lines%0A---&options=%7B%0A%20%22async%22%3A%20false%2C%0A%20%22breaks%22%3A%20false%2C%0A%20%22extensions%22%3A%20null%2C%0A%20%22gfm%22%3A%20true%2C%0A%20%22hooks%22%3A%20null%2C%0A%20%22pedantic%22%3A%20false%2C%0A%20%22silent%22%3A%20false%2C%0A%20%22tokenizer%22%3A%20null%2C%0A%20%22walkTokens%22%3A%20null%0A%7D&version=15.0.11) [Fixed demo](https://marked.js.org/demo/?text=%23%23%23%20heading%203%0A%0A---%0A%0ASome%20text%0AMultiple%20lines%0A%0A---&options=%7B%0A%20%22async%22%3A%20false%2C%0A%20%22breaks%22%3A%20false%2C%0A%20%22extensions%22%3A%20null%2C%0A%20%22gfm%22%3A%20true%2C%0A%20%22hooks%22%3A%20null%2C%0A%20%22pedantic%22%3A%20false%2C%0A%20%22silent%22%3A%20false%2C%0A%20%22tokenizer%22%3A%20null%2C%0A%20%22walkTokens%22%3A%20null%0A%7D&version=15.0.11)
CSS for the demo page is in https://github.com/szimek/signature_pad/tree/master/docs/css
Can you provide all of the code that causes the problem, so we can reproduce the error?
It looks like that change to the unit tests breaks in the latest version of node. I think adding these Boolean parameters to tokens would be fine. We should try...
One other option is to use the `raw` property to determine these properties. The raw property should always be the actual markdown that was used to create that token. ```js...
I'm going to close this as stale. If you would like to continue working on this feel free to get the tests passing and reopen this.
That sounds good to me. Do you want to create a PR to implement it?
This could also be done with walkTokens. Something like: ```js const walkTokens = (token) => { if (token.type === 'list') { token.listItems.forEach((item, idx) => { item.ordered = token.ordered; item.index =...
@tmatheas this is not fixed in marked See https://github.com/markedjs/marked/issues/3359#issuecomment-2209320597 for a way to add properties with an extension. Or feel free to submit a PR to add the properties
closing this as it can easily be an extension so users can opt-in if they need it. see https://github.com/markedjs/marked/issues/3359#issuecomment-2209320597