Commit b5539a07 authored by Matthieu Le Corre's avatar Matthieu Le Corre
Browse files
parent 8b0b5ba6
......@@ -382,7 +382,7 @@ OCA.ReadmeMD.App = {
import('markdown-it').then(MDconverter => {
var converter = MDconverter.default({
replaceLink: function(link,env){
if ( link.startsWith('http://') || link.startsWith('https://') || link.startsWith(OC.getRootPath()+'/index.php/core/preview') ){
if ( link.startsWith('mailto:') ||( link.startsWith('http://') || link.startsWith('https://') || link.startsWith(OC.getRootPath()+'/index.php/core/preview') ){
return link ;
} else {
if (self.mode == 'public') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment