114 Commits

Author SHA1 Message Date
Le Tan
97051badf0 refactor TOC logics 2017-06-01 13:21:17 +08:00
Le Tan
4c63839c4d bugfix: escape special symbols (&) in TOC during generation 2017-05-26 18:19:42 +08:00
Le Tan
73530355fd support highlighting trailing space 2017-05-25 19:52:10 +08:00
Le Tan
9bf3f9394f support custom image folder for both global scope and notebook scope 2017-05-24 19:54:58 +08:00
Le Tan
5b4984f59a bugfix: wait for images loaded before exporting PDF 2017-05-23 19:22:49 +08:00
Le Tan
1370272424 change default style 2017-05-22 23:37:43 +08:00
Le Tan
78d57415c4 add image caption for those images which are adjacent with <br> 2017-05-22 22:38:30 +08:00
Le Tan
0131569c02 support exporting note as PDF file
TODO: Currently the exported PDF does not have the outline which is
needed to fix via third-party utils.
2017-05-22 22:34:53 +08:00
Le Tan
871c53743f add print action item
Print support of QWebEngineView is incomplete in Qt5.7. Need to figure
out another way to print documents.

Just hide the action Item.
2017-05-20 13:49:24 +08:00
Le Tan
f43f9c4afc add Showdown renderer 2017-05-18 21:40:02 +08:00
Le Tan
5bb692bcc5 support centering the images and insert the alt text as caption
Add config enable_image_caption.
2017-05-17 21:03:42 +08:00
Le Tan
0cc1841827 add default highlightjs style vnote.css 2017-05-17 21:01:40 +08:00
Le Tan
1b59afbdf2 bugfix: add margin to the <hr> in default.css 2017-05-16 18:11:34 +08:00
Le Tan
df40ac2db0 bugfix: fix Marked highlihgt option 2017-05-11 19:54:36 +08:00
Le Tan
a154e568de constrain the width of images in read mode 2017-05-10 19:36:07 +08:00
Le Tan
bf55ba01ce bugfix: match Chinese fonts in mdhl 2017-05-08 19:50:39 +08:00
Le Tan
2bdf388c7b constrain the width of previewed images to the eidt window's width 2017-05-06 19:13:58 +08:00
Le Tan
a8614839d9 refactor image preview logics by adding VImagePreviewer
1. Support previewing non-relative local images;
2. Support previewing network images;
2017-05-06 12:25:18 +08:00
Le Tan
d0e43db5ad more user friendly messages 2017-05-03 21:39:18 +08:00
Le Tan
2425d90b37 refine custom style logics
Scan and build the menu automatically.
2017-04-23 10:06:04 +08:00
Le Tan
d9185d3352 support custom editor style by mdhl files 2017-04-22 17:45:43 +08:00
Le Tan
d0d4e1443d support custom CSS styles
VNote will find CSS files in the "styles" folder under the config folder.
2017-04-22 15:39:12 +08:00
Le Tan
bcdfc90951 use Ctrl+<Num> instead of Ctrl+Alt+<Num> to insert title 2017-04-20 21:34:04 +08:00
Le Tan
b7737aff61 change the blockquote style
Change the file format to unix style.
2017-04-19 21:52:08 +08:00
Le Tan
5757489723 refine title of QDockWidget 2017-04-19 21:41:52 +08:00
Le Tan
a0cd784c45 set icon-size of VNotebookSelector::QListWidget 2017-04-19 20:17:14 +08:00
Le Tan
44257913f7 support code block syntax highlihgt in edit mode
In edit mode, highlight code blocks via parsing the result of HighlightJS.
We only highlight fenced code blocks by token-matching.

Support custom style in MDHL file.
2017-04-19 15:08:26 +08:00
Le Tan
9f91d35d34 bugfix: fix Mermaid error 2017-04-09 16:19:57 +08:00
Le Tan
14c7778dc7 update shortcuts doc 2017-04-09 12:34:36 +08:00
Le Tan
32a7adb8d4 support viewing external orphan file
1. Add VOrphanFile for external local file;
2. Add doc file for shortcuts;
3. Ctrl+E ? to open the shortcuts doc;
2017-04-08 21:28:25 +08:00
Le Tan
3ca968169f enable Ctrl+J and Ctrl+K navigation in VDirectoryTree 2017-04-04 23:01:10 +08:00
Le Tan
b0d3e42647 refine edit mode
1. Support "Ctrl+Alt+<N>" to insert title in Markdown;
2. Support Auto Indent;
3. Support Auto List;
2017-04-04 13:21:51 +08:00
Le Tan
acec514418 some minor refinement
1. Change the corner widget color;
2. Change the markdown.css's style to not let it wrap a line.
2017-04-04 13:21:51 +08:00
Le Tan
4923bb54b6 refine button icons 2017-03-31 23:04:32 +08:00
Le Tan
c48fbe16da refine editor style
1. Support editor-current-line and editor-selection style in MDHL;
2. Support vim-background in editor-current-line;
2017-03-31 20:44:30 +08:00
Le Tan
ce1cefa793 allow user to zoom in/out Web page
1. Mouse wheel with Ctrl pressing will zoom in/out the Markdown Web
page;
2. Ctrl+-, Ctrl++ will zoom in/out the Markdown Web page;
3. Ctrl+0 recover the Web page zoom factor to 1.
2017-03-31 09:51:34 +08:00
Le Tan
6949de8723 bugfix: clean up after Mermaid render failure 2017-03-29 21:39:37 +08:00
Le Tan
97dd8c43cc add config web_zoom_factor in vnote.ini
When it is set to -1, VNote will calculate the zoom factor according to
DPI.
This fix is for the hidpi issue on Windows. It is not widely tested on macOS.
2017-03-28 23:15:58 +08:00
Le Tan
485723d7a9 change the color of corner widget of current window 2017-03-28 21:13:28 +08:00
Le Tan
46a59d7e33 refine font settings for editor 2017-03-28 19:59:26 +08:00
Le Tan
ad84acaf59 try to fix scalability issue in hidpi Windows 2017-03-27 22:47:58 +08:00
Le Tan
9b21ce444d change default font family for both Markdown editing and reading 2017-03-27 22:09:57 +08:00
Le Tan
b690db3502 bugfix: Mermaid parser error will not throw exception 2017-03-27 19:49:00 +08:00
Le Tan
2a1cba1fed error handling for Mermaid and Mathjax 2017-03-24 20:31:05 +08:00
Le Tan
a9b34955ee support MathJax
Work well with Hoedown and Markdown-it.
2017-03-23 20:57:31 +08:00
Le Tan
bed6a0d234 support mermaid diagram 2017-03-22 14:18:00 +08:00
Le Tan
bacd112782 support task lists in markdown-it 2017-03-21 20:20:38 +08:00
Le Tan
7a51ee5b3d add Markdown renderer markdown-it 2017-03-21 15:43:54 +08:00
Le Tan
d47dd92f59 refine markdown render logics
Add common templates markdown_template.html and
markdown_template.js.

Hoedow provides hoedown.js.
Marked provides marked.js.
2017-03-20 20:45:17 +08:00
Le Tan
ee6fc69bb1 pop up a menu when inserting image or URL 2017-03-20 20:40:52 +08:00