This commit is contained in:
Justine Pelletreau 2022-03-17 01:08:36 +01:00
parent 50a4def2a6
commit 1facfbaed6
3 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -40,7 +40,7 @@ class note:
</form>
<div class="notetime">Created : {self.rendertime(self.createtime)}
<br>Modified : {self.rendertime(self.modtime)}</div><br>
<div class="notetext">{markdown.markdown(self.text, extensions=['fenced_code', 'codehilite'])}</div><br>
<div class="notetext">{markdown.markdown(self.text, extensions=['fenced_code', 'codehilite', 'nl2br', 'smarty'])}</div><br>
"""
return Markup(rendered)

BIN
src/notes.pickle Normal file

Binary file not shown.