Closed float3 closed 6 months ago
Thanks for the feedback. However, we need to know the underline implementation so we can mimic the output. For example, GitHub uses this code
so we can simple convert it to javascript.
If you can find out how Zola does this, we can add a new slugify mode for it. PR is welcomed.
https://github.com/Stebalien/slug-rs
this is the library Zola uses, I'll look into making a PR
since it's written in rust it would be possible to leverage wasm, to have identical behavior without rewriting it in JavaScript/Typescript, I assume vscode extensions can do wasm etc.
I assume vscode extensions can do wasm etc.
I don't have such experience but it sounds good to do it.
I assume vscode extensions can do wasm etc.
I don't have such experience but it sounds good to do it.
ok just to make sure we're on the same page, this would involve adding some amount of rust (<10 lines) to the repository to make a bridge between the rust library and the javascript
100% fine
ok great, i'm working on it
Proposal
none of the markdown.extension.toc.slugifyMode options allow you to turn cnjpkr characters into something that a static site generator would expect for example, a static site generator might turn
into
this will break if a TOC is generated because none of the TOC slugification strategies offer this functionality.
Other information
tested with Zola, but i'm sure it applies to other static site generators.