Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
uncloud
files_readmemd
Commits
b5539a07
Commit
b5539a07
authored
Oct 24, 2019
by
Matthieu Le Corre
Browse files
Fix issue
#34
Signed-off-by:
Matthieu Le Corre
<
matthieu.lecorre@univ-nantes.fr
>
parent
8b0b5ba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.js
View file @
b5539a07
...
...
@@ -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
'
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment