Tony Brix

Results 609 comments of Tony Brix
trafficstars

> I'm sure it is an easy thing to add @nidoro We always appreciate PRs 😁👍

I think this is going to be much harder (nearly impossible) because of the line `src = src.replace(/\r\n|\r/g, '\n').replace(/\t/g, ' ');`. If the user uses tabs we won't be able...

also this looks like it is going to slow marked down a lot checking every character for `\n`

marked does save the `raw` src in the token so I think like @calculuschild said it might be easiest to use [`walkTokens`](https://marked.js.org/using_pro#walk-tokens) to add the line and column information. Then...

> Is there a fix or workaround for this? Not yet, but if you want to create a PR we would be very appreciative :+1: It looks like the `space`...

Looks like `raw` should be fixed in v4.0.9 #2341

To get a checkbox change event you can just use JavaScript ```js document.querySelector("input[type=checkbox]").addEventListener("change", () => {...}) ```

marked is only meant for converting markdown to html. For anything else you will need other tools.

It seems like to get this working we need to have something like token type (block or inline) in the walkTokens function.

@bartnv that would be great if you could create a PR. The one thing I would want to watch out for is bringing down the speed of marked. You can...