-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support for walkTokens #39
base: main
Are you sure you want to change the base?
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-markdown
does not support walkTokens.This adds this feature (similar to the way marked itself does it).