5 Commits

Author SHA1 Message Date
Le Tan
22bf96c6e3 add peg-markdown-highlight for markdown editing highlight
[peg-markdown-highlight](https://github.com/ali-rantakari/peg-markdown-highlight.git)

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-11 23:23:11 +08:00
Le Tan
321289c8e0 add VNote::editorAndBrowserFont for setting font in QTextEdit and QTextBrowser
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-09 22:37:45 +08:00
Le Tan
5ff4382f90 support for local image in markdown
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-09 22:06:55 +08:00
Le Tan
7bce2cb298 use QWebEngineView to display markdown files
Thanks to [marked JavaScript library](https://github.com/chjj/marked) by
Christopher Jeffrey. The
[style sheet](http://kevinburke.bitbucket.org/markdowncss/markdown.css)
was created by Kevin Burke.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-09 20:47:20 +08:00
Le Tan
e3e18d040c use QStackedWidget to hold QTextBrowser and VEdit
Use QTextBrowser to display file in read mode and VEdit to display file
in edit mode.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-07 21:55:30 +08:00