Merge pull request #508 from nextcloud/bugfix/502/markdown-newline
Fix markdownit configuration
This commit is contained in:
@@ -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('/');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user