16 Commits

Author SHA1 Message Date
Le Tan
4323797602 fix markdown.css to wrap text in code block
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-17 13:19:46 +08:00
Le Tan
4d9946bfe1 support creating new notebook
Thanks to [benjsperry](https://github.com/driftyco/ionicons) for the
icons.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-17 11:28:37 +08:00
Le Tan
8d9278f491 use VConfigManager to hanlde configurations
Move config related stuff to VConfigManager. For a config value,
VConfigManager will first try to look it up in the user-scoped vnote.ini
config file, if it is empty, then try to look it up in the default
vnote.ini.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-16 14:47:57 +08:00
Le Tan
c8d9745253 highlight code block using regular expression
peg-markdown-highlight can't hanlde code blocks with "#" correctly. Use
regular expression to fix it to avoid mis-interpret the "#" line as a
heading.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-15 21:15:54 +08:00
Le Tan
2adbd7c409 support font family settings in editor style
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-14 11:56:47 +08:00
Le Tan
eb5b6a6276 support font family style in markdown highlighting
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-13 23:07:06 +08:00
Le Tan
1b220efb64 change default markdown highlight styles
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-13 21:03:30 +08:00
Le Tan
d22f0124d3 add VStyleParser as a wrapper of pmh_styleparser
Use VStyleParser to read .mdhl style file for markdown highlighting.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-13 17:08:39 +08:00
Le Tan
772e0e95c8 speed up html displaying
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-11 22:17:51 +08:00
Le Tan
1cd8a9740d modify markdown html CSS
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-11 21:24:29 +08:00
Le Tan
96dffa3a8c fix template.html
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-11 09:42:11 +08:00
Le Tan
8e3e78622a utilize highlight.js to highlight code blocks
Use [Highlight.js](https://github.com/isagalaev/highlight.js.git) to
highlight code blocks.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-10 22:51:19 +08:00
Le Tan
daeed51f94 add TOC support to marked
Use `[TOC]` in markdown to generate a table of content.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-10 22:07:54 +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
811172ef8a initial commit for VNote
VNote is a Vim-Like Note for Markdown.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-01 15:45:27 +08:00