You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Resize images
This commit is contained in:
@@ -4,6 +4,7 @@ import { Setting } from 'lib/models/setting.js';
|
||||
import { mime } from 'lib/mime-utils.js';
|
||||
import { filename } from 'lib/path-utils.js';
|
||||
import { FsDriverDummy } from 'lib/fs-driver-dummy.js';
|
||||
import { markdownUtils } from 'lib/markdown-utils.js';
|
||||
import lodash from 'lodash';
|
||||
|
||||
class Resource extends BaseItem {
|
||||
@@ -44,11 +45,11 @@ class Resource extends BaseItem {
|
||||
let lines = [];
|
||||
if (Resource.isSupportedImageMimeType(resource.mime)) {
|
||||
lines.push("");
|
||||
} else {
|
||||
lines.push("[");
|
||||
lines.push(tagAlt);
|
||||
lines.push(markdownUtils.escapeLinkText(tagAlt));
|
||||
lines.push("](:/" + resource.id + ")");
|
||||
}
|
||||
return lines.join('');
|
||||
|
||||
Reference in New Issue
Block a user