Commit 6da7dc43 authored by Matthieu Le Corre's avatar Matthieu Le Corre
Browse files

NC17 compat + fix img loading


Signed-off-by: Matthieu Le Corre's avatarMatthieu Le Corre <matthieu.lecorre@univ-nantes.fr>
parent 8d28c536
# 1.1.2 NO_RELEASED_YET
### Fixed
- Image not loading when using MD produced by the new text editor
### Added
- Compatibilité with NC 17
# 1.1.1 26-07-2019
### Fixed
- HTML and asciidoc rendering not working
......
......@@ -7,7 +7,7 @@
With this app you can add a header and a footer to your nextcloud directories.
This can be use to explain the goal of a directory, describe the content of a folder ...
It show README.md in the way gitlab does.]]></description>
<version>1.1.1</version>
<version>1.1.2</version>
<licence>agpl</licence>
<author mail="matthieu.lecorre@univ-nantes.fr" homepage="http://www.univ-nantes.fr">Matthieu Le Corre</author>
<namespace>ReadmeMD</namespace>
......@@ -19,7 +19,7 @@ It show README.md in the way gitlab does.]]></description>
<bugs>https://gitlab.univ-nantes.fr/uncloud/files_readmemd/issues</bugs>
<screenshot>https://gitlab.univ-nantes.fr/uncloud/files_readmemd/raw/master/screenshot.png</screenshot>
<dependencies>
<nextcloud min-version="15" max-version="16"/>
<nextcloud min-version="15" max-version="17"/>
</dependencies>
<settings>
<admin>OCA\ReadmeMD\Settings\Admin\Appareance</admin>
......
......@@ -375,7 +375,7 @@ OCA.ReadmeMD.App = {
import('markdown-it').then(MDconverter => {
var converter = MDconverter.default({
replaceLink: function(link,env){
if ( link.startsWith('http://') || link.startsWith('https://') ) {
if ( 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