mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
allow searching within mermaid diagrams, closes #2821
This commit is contained in:
parent
0a45b58784
commit
70edd9a210
@ -33,7 +33,7 @@ class NoteContentProtectedFulltextExp extends Expression {
|
|||||||
for (let {noteId, type, mime, content} of sql.iterateRows(`
|
for (let {noteId, type, mime, content} of sql.iterateRows(`
|
||||||
SELECT noteId, type, mime, content
|
SELECT noteId, type, mime, content
|
||||||
FROM notes JOIN note_contents USING (noteId)
|
FROM notes JOIN note_contents USING (noteId)
|
||||||
WHERE type IN ('text', 'code') AND isDeleted = 0 AND isProtected = 1`)) {
|
WHERE type IN ('text', 'code', 'mermaid') AND isDeleted = 0 AND isProtected = 1`)) {
|
||||||
|
|
||||||
if (!inputNoteSet.hasNoteId(noteId) || !(noteId in becca.notes)) {
|
if (!inputNoteSet.hasNoteId(noteId) || !(noteId in becca.notes)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -27,7 +27,7 @@ class NoteContentUnprotectedFulltextExp extends Expression {
|
|||||||
for (let {noteId, type, mime, content} of sql.iterateRows(`
|
for (let {noteId, type, mime, content} of sql.iterateRows(`
|
||||||
SELECT noteId, type, mime, content
|
SELECT noteId, type, mime, content
|
||||||
FROM notes JOIN note_contents USING (noteId)
|
FROM notes JOIN note_contents USING (noteId)
|
||||||
WHERE type IN ('text', 'code') AND isDeleted = 0 AND isProtected = 0`)) {
|
WHERE type IN ('text', 'code', 'mermaid') AND isDeleted = 0 AND isProtected = 0`)) {
|
||||||
|
|
||||||
if (!inputNoteSet.hasNoteId(noteId) || !(noteId in becca.notes)) {
|
if (!inputNoteSet.hasNoteId(noteId) || !(noteId in becca.notes)) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user