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

Commit 106eb9c

Browse files
committed
Don't use yinxiang by default; fix bad merge in editor
1 parent 39620a0 commit 106eb9c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
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 = True
6+
ALWAYS_USE_YINXIANG = False # for 印象笔记 (Yìnxiàng bǐjì), set to True
77

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

geeknote/editor.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,11 @@ def textToENML(content, raise_ex=False, format='markdown', rawmd=False):
221221
contentHTML = u''.join(('<pre>', content, '</pre>')).encode("utf-8")
222222
elif format == 'markdown':
223223
# Markdown format https://daringfireball.net/projects/markdown/basics
224-
storage = Storage()
225-
extras = storage.getUserprop('markdown2_extras')
226-
227-
if not rawmd:
228-
storage = Storage()
229-
extras = storage.getUserprop('markdown2_extras')
224+
extras = None
230225

231226
if not rawmd:
227+
storage = Storage()
228+
extras = storage.getUserprop('markdown2_extras')
232229
content = Editor.HTMLEscapeTag(content)
233230

234231
contentHTML = markdown.markdown(content, extras=extras)

0 commit comments

Comments
 (0)