You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app messed up the entire markdown syntax of my file.
To Reproduce
Steps to reproduce the behavior:
Create a markdown file in your regular markdown editor.
Add normal stuff like lists, break lines, code fences, math expressions.
Then open up your file in the "nextcloud/text" app and save the file.
Open back your file in your regular markdown editor, and see errors : all your makrdown syntax is entirely messed up :
Backslash are added on every single math anotations.
Break lines are removed.
Lists '-' are replaced with '*'.
'<' and '>' in URL are simply... removed.
Langage indices (ex: 'python') in code fences are removed.
Is this normal behavior ? It sounds like the app is trying to avoid langage injection, or something like this. But I don't see why, since it's just regular file. There is no "excecution" capability in markdown file, isn't it ?
Backslash are added on every single math anotations.
Break lines are removed.
Sounds bad, probably a bug?
Lists '-' are replaced with '*'.
the text-app uses markdown-it to convert the markdown to html and, then tiptap to edit the html and prosemirror to recreate markdown.
So this is normal behavior as markdown-it parses it as a list and tiptap also recreates a markdown list, the previous style is simply not saved and the common mark specs say both are equal (tiptap preferes *).
'<' and '>' in URL are simply... removed.
But both characters are not even allowed within an URL.
So I would guess some of the used libraries simply validates the URL. See also rfc3986
Langage indices (ex: 'python') in code fences are removed.
That's also sound's like a bug, as markdown-it and tiptap should support those (covered by commonmark specs)
Since this ticket contains different separate topics, I'll close this and would ask you to open individual issues for each syntax problem together with a simple markdown example to reproduce.
Langage indices (ex: 'python') in code fences are removed.
Activity
[-]YOUR APP IS TERRIBLE[/-][+]MESSED UP AN ENTIRE MARKDOWN FILE[/+][-]MESSED UP AN ENTIRE MARKDOWN FILE[/-][+]Messed up entire markdown syntax[/+]susnux commentedon Jun 21, 2022
Just as a user:
Sounds bad, probably a bug?
the text-app uses
markdown-itto convert the markdown to html and, thentiptapto edit the html andprosemirrorto recreate markdown.So this is normal behavior as
markdown-itparses it as a list andtiptapalso recreates a markdown list, the previous style is simply not saved and the common mark specs say both are equal (tiptappreferes*).But both characters are not even allowed within an URL.
So I would guess some of the used libraries simply validates the URL. See also rfc3986
That's also sound's like a bug, as
markdown-itandtiptapshould support those (covered by commonmark specs)XueSheng-GIT commentedon Jun 21, 2022
I assume this is related to #593
juliusknorr commentedon Oct 28, 2022
Since this ticket contains different separate topics, I'll close this and would ask you to open individual issues for each syntax problem together with a simple markdown example to reproduce.
I could reproduce this and opened #3328
I cannot reproduce this, so if you have an example file a separate issue would be highly appreciated.
Could you please open a separate issue with an example markdown file that shows specifically this issue?
susnux commentedon Oct 28, 2022
Just for reference:
✔️ Should have been resolved with ProseMirror/prosemirror-markdown@48170d4
✔️ Should have been resolved with #2704
✔️ Was resolved by #2720
❔ Still open, but hard to implement as both are semantically the same, this should not hurt.