-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix/ Upgrade marked #808
Fix/ Upgrade marked #808
Conversation
to test: get a dump before today and go to or use the example in #807 |
It looks like the issue will be fixed in the next release of marked so this may not be needed: markedjs/marked#2332 In the future, if we want to prevent these errors my suggestion is that the note editor tests the note content before saving and shows the user an error so they can correct the markdown themselves. |
thanks for the link but i think the fix is not where it's failing in forum page. i think the difficult part is that we don't know how user would break marked.js and the error message are not helpful for user to fix the markdown themselves |
The new version of marked was released with PR #2332 merged: https://github.com/markedjs/marked/releases/tag/v4.0.11 Can you test it out and see if it fixes the issue? |
do you want to make a pr to fix it? |
We'll see... markedjs/marked#2372 |
Wow, that was fast! https://github.com/markedjs/marked/releases/tag/v4.0.12 |
great, i think it's working now |
currently the forum page will render blank if any reply in the forum caused marked to throw an error
this pr added a try catch so that the forum can load