Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 39620a0

Browse files
committed
Merge branch 'master' of https://github.com/dindom999/geeknote into 2.0.14
2 parents d328d7b + fc5d523 commit 39620a0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

geeknote/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import sys
55

6-
ALWAYS_USE_YINXIANG = False # for 印象笔记 (Yìnxiàng bǐjì), set to True
6+
ALWAYS_USE_YINXIANG = True
77

88
# !!! DO NOT EDIT !!! >>>
99
if ALWAYS_USE_YINXIANG or os.getenv("GEEKNOTE_BASE") == "yinxiang":

geeknote/editor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class Editor(object):
3232
@staticmethod
3333
def getHtmlEscapeTable():
3434
return {'"': """,
35-
"'": "'"}
35+
"'": "'",
36+
'\n': "<br />"}
3637

3738
@staticmethod
3839
def getHtmlUnescapeTable():
@@ -223,6 +224,10 @@ def textToENML(content, raise_ex=False, format='markdown', rawmd=False):
223224
storage = Storage()
224225
extras = storage.getUserprop('markdown2_extras')
225226

227+
if not rawmd:
228+
storage = Storage()
229+
extras = storage.getUserprop('markdown2_extras')
230+
226231
if not rawmd:
227232
content = Editor.HTMLEscapeTag(content)
228233

0 commit comments

Comments
 (0)