mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Ignore ts typing error, Fix SPDX license identifier in Obsidian plugin
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"keywords": ["search"],
|
"keywords": ["search"],
|
||||||
"author": "Debanjum Singh Solanky",
|
"author": "Debanjum Singh Solanky",
|
||||||
"license": "GPLv3",
|
"license": "GPL-3.0-or-later",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^16.11.6",
|
"@types/node": "^16.11.6",
|
||||||
"@typescript-eslint/eslint-plugin": "5.29.0",
|
"@typescript-eslint/eslint-plugin": "5.29.0",
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ export class KhojModal extends SuggestModal<SearchResult> {
|
|||||||
let entry_words = result.entry.split(' ')
|
let entry_words = result.entry.split(' ')
|
||||||
let entry_snipped_indicator = entry_words.length > words_to_render ? ' **...**' : '';
|
let entry_snipped_indicator = entry_words.length > words_to_render ? ' **...**' : '';
|
||||||
let snipped_entry = entry_words.slice(0, words_to_render).join(' ');
|
let snipped_entry = entry_words.slice(0, words_to_render).join(' ');
|
||||||
|
// @ts-ignore
|
||||||
MarkdownRenderer.renderMarkdown(snipped_entry + entry_snipped_indicator, el, null, null);
|
MarkdownRenderer.renderMarkdown(snipped_entry + entry_snipped_indicator, el, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user