mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-26 06:39:13 -05:00
export single note as markdown, #166
This commit is contained in:
@@ -98,6 +98,8 @@ if (utils.isElectron()) {
|
||||
});
|
||||
}
|
||||
|
||||
$("#export-note-to-markdown-button").click(() => exportService.exportSubtree(noteDetailService.getCurrentNoteId(), 'markdown-single'));
|
||||
|
||||
treeService.showTree();
|
||||
|
||||
entrypoints.registerEntrypoints();
|
||||
|
||||
@@ -168,13 +168,13 @@ const contextMenuOptions = {
|
||||
treeChangesService.deleteNodes(treeService.getSelectedNodes(true));
|
||||
}
|
||||
else if (ui.cmd === "exportSubtreeToTar") {
|
||||
exportService.exportSubtree(node.data.noteId, 'tar');
|
||||
exportService.exportSubtree(node.data.branchId, 'tar');
|
||||
}
|
||||
else if (ui.cmd === "exportSubtreeToOpml") {
|
||||
exportService.exportSubtree(node.data.noteId, 'opml');
|
||||
exportService.exportSubtree(node.data.branchId, 'opml');
|
||||
}
|
||||
else if (ui.cmd === "exportSubtreeToMarkdown") {
|
||||
exportService.exportSubtree(node.data.noteId, 'markdown');
|
||||
exportService.exportSubtree(node.data.branchId, 'markdown');
|
||||
}
|
||||
else if (ui.cmd === "importIntoNote") {
|
||||
exportService.importIntoNote(node.data.noteId);
|
||||
|
||||
Reference in New Issue
Block a user