update preview when the user types

We don't have any delay in between updates (because i'm scared of
threading), which has a few problem:

1. probably really sluggish on slow systems
2. probably slow for readmes with images (need to test)
3. flickers (the phantoms are updated too quickly, so sometimes it
doesn't replace the old one smoothly)

BUG: the preview doesn't load when we preview the markdown file
This commit is contained in:
Mathieu PATUREL
2019-11-14 15:47:42 +11:00
parent 8eb6882d60
commit 6bb8e6ebaa
4 changed files with 2793 additions and 8 deletions

2711
lib/markdown2.py Normal file

File diff suppressed because it is too large Load Diff