Tony Brix
Tony Brix
I would be ok with that if you want to create a PR
Similar to #1559
A workaround would be to use angle brackets around the url `text "" text` [demo](https://marked.js.org/demo/?text=text%20%22%3Chttp%3A%2F%2Fexample.com%3E%22%20text&options=%7B%0A%20%22baseUrl%22%3A%20null%2C%0A%20%22breaks%22%3A%20false%2C%0A%20%22gfm%22%3A%20true%2C%0A%20%22headerIds%22%3A%20true%2C%0A%20%22headerPrefix%22%3A%20%22%22%2C%0A%20%22highlight%22%3A%20null%2C%0A%20%22langPrefix%22%3A%20%22language-%22%2C%0A%20%22mangle%22%3A%20true%2C%0A%20%22pedantic%22%3A%20false%2C%0A%20%22sanitize%22%3A%20false%2C%0A%20%22sanitizer%22%3A%20null%2C%0A%20%22silent%22%3A%20false%2C%0A%20%22smartLists%22%3A%20false%2C%0A%20%22smartypants%22%3A%20false%2C%0A%20%22tokenizer%22%3A%20null%2C%0A%20%22walkTokens%22%3A%20null%2C%0A%20%22xhtml%22%3A%20false%0A%7D&version=master)
@dru1 it looks like that isn't a valid link in GFM anyway example: `[http://example.com]` [http://example.org] You need angle brackets to make it a link example: `[]` []
Yes that is a bug in marked. Unfortunately GFM extensions are very poorly documented so there are a lot of those edge cases that are not defined in the spec.
looks like the issue is that `、` is not included as [punctuation](https://github.com/markedjs/marked/blob/master/src/rules.js#L184) for left delimiter. According to the [spec](https://spec.commonmark.org/0.30/#unicode-punctuation-character) the puctuation should include: > an [ASCII punctuation character](https://spec.commonmark.org/0.30/#ascii-punctuation-character) or anything...
looks like it thinks the code is part of the list item because there is no blank line between them so it is removing two spaces before every line. If...
This was fixed in [v4.0.17](https://github.com/markedjs/marked/releases/tag/v4.0.17)
That isn't what marked is for. You could use [turndown](https://github.com/mixmark-io/turndown) on the output HTML. Or you will have to create your own renderer that outputs markdown instead of html.
this is what `~test~` looks like on GitHub: ~test~ It looks like GitHub allows single tildes to be used for strikethrough even though the spec says otherwise.