Could autumn be an optional dependency?
Hello,
Thank you for MDEx, we use it in lots of projects, handling converting various source of Markdown to HTML.
The think we never use though is Autumn and we get a lot of PRs from dependabot for it.
Do you think it could be possible to add it as an optional dependency? It could be nice to not force a specific syntax highlighter in a markdown library.
What do you think?
In short, yes. It used to not have autumn as dependency but I added it to reuse the types and nimble_options config. That's the main use really because syntax highlighting is done through https://crates.io/crates/autumnus actually so it might be a good idea to revert that change and remove it as dependency to avoid downloading one extra nif binary.
It could be nice to not force a specific syntax highlighter in a markdown library.
It's optional since v0.7.1, just define syntax_highlight: nil to not apply the built-in syntax highlighter which will generate something like:
<pre><code class="language-js">const foo = 1</code></pre>
And then you can use any other library as you wish.
So I think it's 👍🏻 although not a top priority, but I can work on it as soon as I get other issues done. Thanks!
Thank you !