导出Leanote缺失 #97

https://github.com/leanote/desktop-app/issues/97
This commit is contained in:
life
2015-11-29 19:01:27 +08:00
parent 962360614c
commit afcb05036e

View File

@@ -134,7 +134,10 @@ define(function() {
notes: []
}
me.fixFiles(note, function (content, files) {
content = $('<div>' + content + '</div>').html();
// 非markdown才需要这样, 补全html标签
if (!note.IsMarkdown) {
content = $('<div>' + content + '</div>').html();
}
var filesArr = [];
files || (files = {});
@@ -147,7 +150,7 @@ define(function() {
var noteInfo = {
title: note.Title,
content: me.fixContent(content),
content: !note.IsMarkdown ? me.fixContent(content) : content,
tags: note.Tags,
author: Api.userService.email || Api.userService.username || '',
isMarkdown: note.IsMarkdown,