implemented markdown export, #166

This commit is contained in:
azivner
2018-09-02 23:39:10 +02:00
parent 0daeb71869
commit 467ad79129
4 changed files with 367 additions and 30 deletions

View File

@@ -96,7 +96,8 @@ const contextMenuOptions = {
{title: "----"},
{title: "Export subtree", cmd: "exportSubtree", uiIcon: " ui-icon-arrowthick-1-ne", children: [
{title: "Native Tar", cmd: "exportSubtreeToTar"},
{title: "OPML", cmd: "exportSubtreeToOpml"}
{title: "OPML", cmd: "exportSubtreeToOpml"},
{title: "Markdown", cmd: "exportSubtreeToMarkdown"}
]},
{title: "Import into note (tar, opml)", cmd: "importIntoNote", uiIcon: "ui-icon-arrowthick-1-sw"},
{title: "----"},
@@ -172,6 +173,9 @@ const contextMenuOptions = {
else if (ui.cmd === "exportSubtreeToOpml") {
exportService.exportSubtree(node.data.noteId, 'opml');
}
else if (ui.cmd === "exportSubtreeToMarkdown") {
exportService.exportSubtree(node.data.noteId, 'markdown');
}
else if (ui.cmd === "importIntoNote") {
exportService.importIntoNote(node.data.noteId);
}