-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Markdown support for app descriptions #1594
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
Conversation
LukasReschke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a look later with regards to XSS.
|
Well the question is, which markup do we want to allow? Allowed
Unsafe
|
|
Last time I've tried marked it was vulnerable to XSS. I've ended up with https://github.com/markdown-it/markdown-it#markdown-it which is "Safe by default" |
|
I'd render links because most of the time you want to link to documentation or FAQ to get people started. As for images: I'd probably relax the CSP if feasable but require them to be served over HTTPS |
|
Closing, feel free to reopen and pick up, once decisions have been made |
5ef6698 to
f01af3d
Compare
|
Rebased and pushed a commit which:
I'd like to do this and also add it to 11, because the app store says markdown is supported and even shows it, but in the app management everything looks broken. Please review @LukasReschke @BernhardPosselt @MorrisJobke @BernhardPosselt please also adjust the app store to not render quotes, images and non-http links, so the feeling is the same everywhere |
|
Any reason for not rendering links, quotes and images? These things are probably the most important markdown features. What MD lib are you using? |
We render links when they are http or https, but javascript, ftp, whatever are just ignored.
|
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Morris Jobke <[email protected]>
dfc1b39 to
b25a3b9
Compare
|
Added DOMPurify at b25a3b9 – ok for me now. |
| 'li', | ||
| 'em', | ||
| 's', | ||
| 'blockquote' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickvergessen Whitelist here what you want to have whitelisted 😉
4016cb9 to
110aacc
Compare
Signed-off-by: Lukas Reschke <[email protected]>
Signed-off-by: Lukas Reschke <[email protected]>
110aacc to
ddfc7e6
Compare
Signed-off-by: Joas Schilling <[email protected]>
|
@jancborchardt can you fix lists please? they have too much space and the order items seem to be stripped away. You can tests it by adding the following as an app description: |
Let me try to fix this. |
Signed-off-by: Morris Jobke <[email protected]>
Signed-off-by: Morris Jobke <[email protected]>
|
Thanks, so ready to merge! |
ChristophWurst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and works
Go go go go! 🏎 |
|
I'd still like to backport this to 11, so the new fancy appstore descriptions don't appear broken in Nextcloud. Opinions @LukasReschke @karlitschek |
|
nice. please backport. low risk I assume |



@janis91 this should fix the markdown showing up as plaintext...
@icewind1991 your files_markdown app uses the same lib, you might be able to drop it, in case it causes problems otherwise.
@LukasReschke @MorrisJobke
Todo