1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

All: Resolves #846: Set resource path to correct relative path so that for example images show up in Markdown viewers

This commit is contained in:
Laurent Cozic
2018-11-21 00:36:23 +00:00
parent 45cd8b7e3c
commit 897f53b13e
5 changed files with 80 additions and 26 deletions

View File

@@ -13,6 +13,14 @@ class InteropService_Exporter_Base {
return this.metadata_;
}
updateContext(context) {
this.context_ = context;
}
context() {
return this.context_;
}
async temporaryDirectory_(createIt) {
const md5 = require('md5');
const tempDir = require('os').tmpdir() + '/' + md5(Math.random() + Date.now());