Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Replace relative file:// urls with absolute path. #1

Conversation

matijagaspar
Copy link

Simple workaround to make relative file:// images work.

It replaces every occurrence file://relative/path/file with file://absolutepath/relative/path/file. It will ignore it if it is a absolute path already (ie: file:///abs/path/file)

Regex could be additionally restricted to only check in specific attributes. However it should rarely happen that someone has a file:// in a text

@attilabuti
Copy link
Owner

Thank you for your contribution!
I will add it in the next update.

(Currently I'm working on a new preview manager, with more options.)

@attilabuti
Copy link
Owner

Released in v0.0.4

@attilabuti attilabuti closed this Jun 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants