From 1facfbaed656f58c2f7bb2e3eb3819da1080e922 Mon Sep 17 00:00:00 2001 From: Justine Pelletreau Date: Thu, 17 Mar 2022 01:08:36 +0100 Subject: [PATCH] v1.0 --- README.md | 2 +- src/app.py | 2 +- src/notes.pickle | Bin 0 -> 406 bytes 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/notes.pickle diff --git a/README.md b/README.md index 4d3ac9c..a593fa0 100644 --- a/README.md +++ b/README.md @@ -25,4 +25,4 @@ pygmentize -S dracula -f html -a .codehilite > styles.css ## Future features, todo * A squirrel ascii picture somewhere in the page :3 -* Better syntax coloring and markdown rendering in general +* A link "export all in markdown" diff --git a/src/app.py b/src/app.py index 02dc0b2..6c48820 100755 --- a/src/app.py +++ b/src/app.py @@ -40,7 +40,7 @@ class note:
Created : {self.rendertime(self.createtime)}
Modified : {self.rendertime(self.modtime)}

-
{markdown.markdown(self.text, extensions=['fenced_code', 'codehilite'])}

+
{markdown.markdown(self.text, extensions=['fenced_code', 'codehilite', 'nl2br', 'smarty'])}

""" return Markup(rendered) diff --git a/src/notes.pickle b/src/notes.pickle new file mode 100644 index 0000000000000000000000000000000000000000..4ccd3924117e914de42bd7c25ad0a861b2a8aa34 GIT binary patch literal 406 zcmYk1%SyvQ6owV*g@Jj8L%V1Tl7dT@?i9LmBS=Xn$!RlmE+KPj8br{w**QLv@8xMM z+FAW`F5my3x53xP=}G?Z86?|zg%aX$ZJ%D zN0l?uWH5H;^S1JV7(lqA_;|(ir+I6%+bkv}Q59}xv!-d1wfAd-$*P`8A;k!8^%{DH z6n6wVfYUhwdB_k{X7*BwZQu_C?RXWKi5chEfN}){(#Alkp7#@ft)4xC2dlVwz_%Er z7*oj}q4Zl*0N>i%KvjFTvSS$j8kb}ZQf*)n(5%M)^L+2<5DM#~Sez_wGnM=R=un4( literal 0 HcmV?d00001