diff options
author | Azul <azul@riseup.net> | 2020-06-16 13:06:18 +0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-08-11 16:25:54 +0300 |
commit | 9dfc8cd64d2f90bf70028088f1c4697e3f659547 (patch) | |
tree | b29abc57854403e91d1f5a9dd53e363f59aaf1a9 /src/helpers/files.js | |
parent | 03ccc8aa0369ada0ed0d50b50e60171696fdd2e6 (diff) |
refactor: define our own Link mark to rewrite hrefs
The short relative links used in markdown
need to be converted to working urls in the href attributes.
In order to properly serialize the content
the full urls in html need to be converted to relative links as well.
This commit splits out the href handling into a new helper.
This way it can be easily tested.
Signed-off-by: Azul <azul@riseup.net>
Diffstat (limited to 'src/helpers/files.js')
-rw-r--r-- | src/helpers/files.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/helpers/files.js b/src/helpers/files.js index b85319dfb..0494ade03 100644 --- a/src/helpers/files.js +++ b/src/helpers/files.js @@ -20,10 +20,6 @@ * */ -/** - * Callback that should be executed after the document is ready - * @param callback - */ import { openMimetypes } from './mime' import RichWorkspace from '../views/RichWorkspace' import { imagePath } from '@nextcloud/router' |