-
Notifications
You must be signed in to change notification settings - Fork 94
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
Do not remove escaping from brackets #2704
Conversation
e1e73ae
to
b01a1d7
Compare
/compile |
477b1f2
to
dcb2663
Compare
Edit: done |
dcb2663
to
ae0518b
Compare
/compile amend |
ae0518b
to
31edbaf
Compare
31edbaf
to
8b9f2ce
Compare
Added test cases, all tests pass I think this can be reviewed 😃 |
This PR fix one or two problems @susnux ? |
It fixes two problems + some parts of the "markdown formatting get broken"-problems
|
@vinicius73 if preferred I can split this PR into two, one for fixing the issue and one for switching the dependency to fix the other issue. |
8b9f2ce
to
30dc282
Compare
/compile amend |
30dc282
to
8e74ccf
Compare
0193f1e
to
99e532f
Compare
/compile |
I decided to split the PR as the switch of the dependency was not really needed to fix this issue, but another. So this in now only fixing the issues described in the comment above ( #2704 (comment) ), for the other part see: #2720 |
Thanks for it @susnux |
e278adf
to
444e779
Compare
/compile amend |
444e779
to
ee8ce63
Compare
… when saved Added a markdown-it and tiptap extension to tag special, unknown, markdown syntax which would be escaped by prosemirror-markdown on save. The tagged part is not touched while saving if they are not modified manually. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Removed the erroneous replacement of escaped brackets with plain brackets as this breaks valid markdown. Added a test case for this. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
ee8ce63
to
da10d8a
Compare
/compile amend |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
da10d8a
to
8bdfcaf
Compare
Summary
See #2703 for full description
Removed the erroneous replacement of escaped brackets with plain brackets as this breaks valid markdown.
Added a test case for this.
Added markdownit and tiptap extensions to tag special characters (characters which might have a special meaning for markdown) that are not parsed by markdownit, e.g. because they are extended markdown syntax. The tags are only stripped if the user edits it that part of the file.
This way we can ensure they do not get escaped by
prosemirror-markdown
.