mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
ability to define a keyboard shortcut for paste markdown, closes #761
This commit is contained in:
@@ -26,6 +26,10 @@ async function convertMarkdownToHtml(text) {
|
||||
}
|
||||
|
||||
export async function importMarkdownInline() {
|
||||
if (noteDetailService.getActiveTabNoteType() !== 'text') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (utils.isElectron()) {
|
||||
const {clipboard} = require('electron');
|
||||
const text = clipboard.readText();
|
||||
|
||||
Reference in New Issue
Block a user