Tony Brix
Tony Brix
I don't think computed properties should be part of the AST
PRs are welcome
The documentation should say something about `marked.Slugger` being public and show how to use it.
I agree, accessibility should be important. Unfortunately that would go against the [gfm spec](https://github.github.com/gfm/#task-list-items-extension-). Since we are focused on following the spec, this might be a better argument for changing...
The easiest way to do that currently would be to extend the renderer and add the `` ```js var marked = require('marked'); var renderer = new marked.Renderer(); var renderListitem =...
We were looking into moving to ESM a while ago but our benchmarks showed cjs was about 10% faster then ESM in Node 12. Also moving from default to named...
@evanplaice we do provide an ESM bundle for browsers in `lib/marked.esm.js`. It doesn't really make sense to tree shake a library like marked since it is so small and only...
@evanplaice we are always open to PRs. If you can show a significant improvement in speed or size we will definitely move to ESM. I have no problem with ESM...
@KilianKilmister if you clone marked you can run the benchmarks by running `npm run bench` the file that runs is [test/bench.js](https://github.com/markedjs/marked/blob/master/test/bench.js)
[marked demo](https://marked.js.org/demo/?text=**STRONG**.%20%20OK%20%20%0A**STRONG**%E3%80%82%20%20OK%20%20%0A**STRONG**%EF%BC%81%20%20OK%20%20%0A**STRONG**M%20%20OK%0A%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**!%20%20%20%20OK%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**.%20%20%20%20OK%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**%EF%BC%81%20%20%20bad!%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**%20%EF%BC%81%20%20%20OK%20%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**M%20%20%20bad!%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**%20M%20%20%20OK%20%20%20%20&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) [CommonMark demo](https://spec.commonmark.org/dingus/?text=**STRONG**.%20%20OK%20%20%0A**STRONG**%E3%80%82%20%20OK%20%20%0A**STRONG**%EF%BC%81%20%20OK%20%20%0A**STRONG**M%20%20OK%0A%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**!%20%20%20%20OK%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**.%20%20%20%20OK%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**%EF%BC%81%20%20%20bad!%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**%20%EF%BC%81%20%20%20OK%20%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**M%20%20%20bad!%20%20%0A**%5BSTRONG%5D(%20http%3A%2F%2Fabc.com%20)**%20M%20%20%20OK%20%20%20%20) Github Demo: --- **STRONG**. OK **STRONG**。 OK **STRONG**! OK **STRONG**M OK **[STRONG]( http://abc.com )**! OK **[STRONG]( http://abc.com )**. OK **[STRONG]( http://abc.com )**! bad! **[STRONG]( http://abc.com )**...