feat: support for walkTokens - #39
Conversation
|
I did some rudimentary tests concerning the impact of importing |
|
Ok, I'm an idiot. There is already the parse event. Sorry. |
|
I'm not sure if the I'm using the approach you described in #38 to use For example, doing something like this, <script>
import { extensions, walkTokens } from '../lib/wmd.js'
marked.use({extensions, walkTokens})
const options = marked.defaults
</script>
<SvelteMarkdown source={XXX} {options} />Could this be re-opened? I'm not sure if I should bring this up here or elsewhere. |
|
Yes, |
This is the main reason why I'd also like to consider alternatives.
I'd have imagined this should work, maybe it's importing a different version of Another option I could see is making I don't know what you think, @genericFJS |
#38 doesn't work with walkTokens since the Lexer does not call it. Only
I agree but I don't know any easy ones. |
Currently
svelte-markdowndoes not support walkTokens.This adds this feature (similar to the way marked itself does it).