markdown wiki reference on README

This commit is contained in:
azivner 2018-09-03 21:06:24 +02:00
parent 185fb4b787
commit bc669c7b81
4 changed files with 9 additions and 1 deletions

View file

@ -21,6 +21,7 @@ See other pictures in [screenshot tour](https://github.com/zadam/trilium/wiki/Sc
* [Scripting](https://github.com/zadam/trilium/wiki/Scripts) - see [Advanced showcases](https://github.com/zadam/trilium/wiki/Advanced-showcases)
* Scales well in both usability and performance upwards of 100 000 notes
* [Night theme](https://github.com/zadam/trilium/wiki/Themes)
* [Markdown import & export](https://github.com/zadam/trilium/wiki/Markdown)
## Builds

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "trilium",
"version": "0.20.2",
"version": "0.21.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -1,4 +1,5 @@
import treeService from './tree.js';
import infoService from './info.js';
import protectedSessionHolder from './protected_session_holder.js';
import utils from './utils.js';
import server from './server.js';
@ -8,6 +9,8 @@ function exportSubtree(noteId, format) {
"?protectedSessionId=" + encodeURIComponent(protectedSessionHolder.getProtectedSessionId());
utils.download(url);
infoService.showMessage("Export to file has been finished.");
}
let importNoteId;

View file

@ -15,6 +15,10 @@ async function importToBranch(req) {
const parentNoteId = req.params.parentNoteId;
const file = req.file;
if (file) {
return [400, "No file has been uploaded"];
}
const parentNote = await repository.getNote(parentNoteId);
if (!parentNote) {