Yoopta-Editor
Yoopta-Editor copied to clipboard
[BUG] Markdown Serializer Strips out asterisks
Has this bug been raised before?
- [X] I have checked "open" AND "closed" issues and this is not a duplicate
Description
In the new Yoopta/Exports (current version 4.6.1) the markdown serializer is removing bolded text, and horizontal rules in the markdown it's outputting.
It seems to also miss the bolded text nested within other components like bullet lists when deserializing.
Steps to Reproduce
- Add the editor to a page
- Add some text to the editor with bold words, and horizontal rules Ex:
**Bold Header**
Fun message
***
**Another Bold Header**
Even funner message
- Get the editor value and serialize it to markdown:
const editorValue = editor?.getEditorValue();
if (editor && editorValue) {
newContent = markdown.serialize(editor!, editorValue);
setMarkdownBody(newContent);
}
- Display or log the output markdown and see that the asterisk have all been stripped
Environment
- OS: MAC OS Sonoma (14.5)
- Browser: Chrome (126.0.6478.127), Safari (17.5)
Screenshots
Orignal markdown:
Deserialized and in the Yoopta Editor:
Serialized back to markdown:
Do you want to work on this issue?
No
If "yes" to above, please explain how you would technically implement this
No response
hmmm
@Darginec05 Is this on the roadmap to fix? This is currently the only issue blocking my company from implementing this editor.
We're happy to donate to the cause as well!
Hi @sandrews-inc 👋 Unfortunately my time is limited, because I have another full-time work. So your donation will certainly motivate me.
And if this task is urgent for you, I will try to publish version of the fix tomorrow or the day after tomorrow evening. Thanks in advance! ❤️
Hi @sandrews-inc 👋 Good news! I published -rc version with this fixes. Check it in demo - https://yoopta-editor-ffxdyxq73-dargos-projects.vercel.app/examples/withBaseFullSetup
Added in v4.8.0 Check it in examples https://yoopta.dev/examples/withBaseFullSetup