- 
                Notifications
    You must be signed in to change notification settings 
- Fork 43
Use correct CSS URL, remove default marked settings and change to GFM rendering #149
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
… rendering * improves the list rendering for system report (see app list) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| .html(DOMPurify.sanitize( | ||
| marked(content, { | ||
| renderer: renderer, | ||
| gfm: false, | 
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.
This is the only non-default value here. Default is true and thus it fixes the stuff in here.
| OC_Util::addVendorScript('core', 'marked/marked.min'); | ||
| OCP\Util::addScript('files_texteditor', 'public-share'); | ||
| OCP\Util::addStyle('files_texteditor', '../build/public-share'); | ||
| OCP\Util::addStyle('files_texteditor', 'public-share'); | 
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.
Looks like a wrong c&p because only JS is placed in there. SCSS is processed by NC and thus already at the correct location.
| /backport to stable16 | 
| /backport to stable15 | 
| /backport to stable14 | 
| backport to stable16 in #150 | 
| backport to stable15 in #151 | 
| backport to stable14 in #152 | 
Before and after:
Be aware that this only works if the markdown editor app is not enabled.