Uh oh!
There was an error while loading. Please reload this page.
Markdown support for app descriptions - #1594
Conversation
LukasReschke
left a comment
There was a problem hiding this comment.
I'll take a look later with regards to XSS.
nickvergessen
commented
Sep 30, 2016
Well the question is, which markup do we want to allow? Allowed
Unsafe
|
BernhardPosselt
commented
Sep 30, 2016
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" |
BernhardPosselt
commented
Sep 30, 2016
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 |
nickvergessen
commented
Nov 2, 2016
Closing, feel free to reopen and pick up, once decisions have been made |
5ef6698 to
f01af3dComparenickvergessen
commented
Dec 15, 2016
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 |
BernhardPosselt
commented
Dec 15, 2016
Any reason for not rendering links, quotes and images? These things are probably the most important markdown features. What MD lib are you using? |
nickvergessen
commented
Dec 15, 2016
We render links when they are http or https, but javascript, ftp, whatever are just ignored.
https://github.com/nextcloud/server/pull/1594/files#diff-0a08a7565aba4405282251491979bb6b |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
dfc1b39 to
b25a3b9CompareLukasReschke
commented
Jan 13, 2017
Added DOMPurify at b25a3b9 – ok for me now. |
| 'li', | ||
| 'em', | ||
| 's', | ||
| 'blockquote' |
There was a problem hiding this comment.
@nickvergessen Whitelist here what you want to have whitelisted 😉
4016cb9 to
110aaccCompareSigned-off-by: Lukas Reschke <lukas@statuscode.ch>
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
110aacc to
ddfc7e6CompareSigned-off-by: Joas Schilling <coding@schilljs.com>
nickvergessen
commented
Jan 16, 2017
@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: |
MorrisJobke
commented
Jan 16, 2017
Let me try to fix this. |
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
MorrisJobke
commented
Jan 17, 2017
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
MorrisJobke
commented
Jan 17, 2017
nickvergessen
commented
Jan 17, 2017
Thanks, so ready to merge! |
ChristophWurst
commented
Jan 17, 2017
Go go go go! 🏎 |
nickvergessen
commented
Jan 17, 2017
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