mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 14:35:40 +08:00
Merge remote-tracking branch 'origin/stable'
This commit is contained in:
commit
84d7097b1a
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ async function getRenderedContent(note) {
|
||||||
$rendered = $("<pre>").text(fullNote.content);
|
$rendered = $("<pre>").text(fullNote.content);
|
||||||
}
|
}
|
||||||
else if (type === 'image') {
|
else if (type === 'image') {
|
||||||
$rendered = $("<img>").attr("src", `api/images/${note.noteId}/${note.title}`);
|
$rendered = $("<img>")
|
||||||
|
.attr("src", `api/images/${note.noteId}/${note.title}`)
|
||||||
|
.css("max-width", "100%");
|
||||||
}
|
}
|
||||||
else if (type === 'file') {
|
else if (type === 'file') {
|
||||||
function getFileUrl() {
|
function getFileUrl() {
|
||||||
|
|
Loading…
Reference in a new issue