Merge pull request #508 from nextcloud/bugfix/502/markdown-newline

Fix markdownit configuration
This commit is contained in:
Julius Härtl
2018-06-28 21:36:19 +02:00
committed by GitHub

View File

@@ -37,11 +37,12 @@ app.config(function ($provide, $interpolateProvider, $httpProvider, $urlRouterPr
// inline JS is blocked by CSP anyway and filtered out by our markdown renderer as well // inline JS is blocked by CSP anyway and filtered out by our markdown renderer as well
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|javascript):/); $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|javascript):/);
markdownItConverterProvider.use(markdownitLinkTarget, { markdownItConverterProvider.config({
breaks: true, breaks: true,
linkify: true, linkify: true,
xhtmlOut: true xhtmlOut: true
}).use(markdownitCheckbox); });
markdownItConverterProvider.use(markdownitLinkTarget).use(markdownitCheckbox);
$urlRouterProvider.otherwise('/'); $urlRouterProvider.otherwise('/');