-
Notifications
You must be signed in to change notification settings - Fork 302
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
svelte example fails #10
Comments
Did you run it at |
Yes, I downloaded the example/svelte folder, |
Oh, it seems the package The temporary solutions is to run |
It worked, except the |
Upgrade the Node.js version should solve this problem |
Yeah, it is because the There are two ways to solve this problem:
importImage({
upload(files) {
return uploadFilesToServer(files) // return ['https://xxx']
},
}),
<Editor sanitize={(schema) => {
schema.protocols.src.push('data')
return schema
}} /> |
Thanks for replying patiently. Now I feel the image doubt was pretty stupid; I should've gone through the source code. |
How do I access the rendered HTML in the svelte example? |
import { getProcessor } from 'bytemd'
const html = getProcessor({ plugins: [/*add your plugins*/] }).processSync('# markdown text').toString() |
It is recommended to save Markdown text instead of HTML, because Markdown can be transformed to HTML losslessly, while the reverse can not. |
I tried running the svelte example and it fails with an error,
Are there any specific build steps? I just ran
npm i
The text was updated successfully, but these errors were encountered: