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

Commit

Permalink
Don't use yinxiang by default; fix bad merge in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkowalski committed May 19, 2018
1 parent 39620a0 commit 106eb9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion geeknote/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import sys

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

# !!! DO NOT EDIT !!! >>>
if ALWAYS_USE_YINXIANG or os.getenv("GEEKNOTE_BASE") == "yinxiang":
Expand Down
9 changes: 3 additions & 6 deletions geeknote/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,11 @@ def textToENML(content, raise_ex=False, format='markdown', rawmd=False):
contentHTML = u''.join(('<pre>', content, '</pre>')).encode("utf-8")
elif format == 'markdown':
# Markdown format https://daringfireball.net/projects/markdown/basics
storage = Storage()
extras = storage.getUserprop('markdown2_extras')

if not rawmd:
storage = Storage()
extras = storage.getUserprop('markdown2_extras')
extras = None

if not rawmd:
storage = Storage()
extras = storage.getUserprop('markdown2_extras')
content = Editor.HTMLEscapeTag(content)

contentHTML = markdown.markdown(content, extras=extras)
Expand Down

0 comments on commit 106eb9c

Please sign in to comment.