53 Commits

Author SHA1 Message Date
Le Tan
35be1516ed markdown-it: use markdown-it-texmath to get rid of escape of MathJax 2018-07-05 20:41:16 +08:00
Le Tan
b10078efa3 WebView: double-click to view diagrams
Mermaid is not supported since its use of external stylesheet.
2018-06-30 22:17:33 +08:00
Le Tan
4df0d03baa WebView: click an image to view/zoom it 2018-06-30 22:16:51 +08:00
Le Tan
a5e64696ea web: fix finishLogics() bug
Treat MathJax as an async job.
2018-06-16 09:00:14 +08:00
Le Tan
7f8075f0ca bug-fix: fix Command+-/= to zoom out/in in read mode on macOS 2018-06-01 17:46:42 +08:00
Le Tan
6752a91ef4 markdown-it: display metadata as code block 2018-05-11 14:39:51 +08:00
Le Tan
bab0140c9f use QWebEnginePage::linkHovered instead 2018-05-04 20:37:40 +08:00
Le Tan
960426579b show hovered link in status line in read mode 2018-04-27 20:35:58 +08:00
Le Tan
10e2bba7f6 support Mermaid and Flowchart.js preview
Mermaid preview is disabled for some issues.
2018-04-12 19:31:13 +08:00
Le Tan
8239abec2a support code block MathJax preview 2018-04-11 19:53:33 +08:00
Le Tan
cfcc7e5494 support in place preview and live preview of code blocks 2018-04-10 20:58:07 +08:00
Le Tan
c6b7561864 VMdTab: live preview 2018-04-10 20:58:07 +08:00
Le Tan
2206102945 support Graphviz 2018-04-10 20:58:07 +08:00
Le Tan
9850d9a2a2 support PlantUML 2018-04-04 20:30:36 +08:00
Le Tan
de7ea32104 flowchart: support both flow and flowchart as the language 2018-03-16 21:38:45 +08:00
Le Tan
dfbb692b15 flowchart/mermaid: remove the surrounding pre 2018-03-16 21:38:25 +08:00
Le Tan
9710659a00 support word count 2018-03-06 19:33:40 +08:00
Le Tan
9cc193178b export: add TOC function to built-in PDF export 2018-03-04 20:19:27 +08:00
Le Tan
635ac0a10b export: fix wkhtmltopdf
- MathJax works fine;
- Mermaid does not work;
- Flowchart.js works fine;
2018-03-03 09:14:21 +08:00
Le Tan
ada0b40d80 mathjax: change <pre> to <p> after rendering 2018-03-02 22:37:14 +08:00
Le Tan
2bb2910fec add enable_flash_anchor config
It controls whether we need to flash the heading when we scroll to it in
read mode.
2018-03-02 22:36:51 +08:00
Le Tan
fe7c446e5f export: handle HTML resources 2018-02-26 19:30:06 +08:00
Le Tan
b7e6301136 export: add option EmbedCssStyle for HTML 2018-02-25 14:37:13 +08:00
Le Tan
1fe7567d79 export: support HTML format 2018-02-25 10:01:18 +08:00
Le Tan
b9e8bc0eb4 enable MathJax in fenced code block 2018-01-07 19:14:29 +08:00
Le Tan
1d2183d44e VMdEditor: support zoom in/out 2018-01-05 21:27:09 +08:00
Le Tan
b19b1d8079 minor-fix
- Support repeat in title jump in read mode;
- Trim input in VInsertLinkDialog;
- Rename VLineEdit to VMetaWordLineEdit;
2018-01-04 19:54:32 +08:00
Le Tan
2f1971476d VMdEditor: support copy selected text as HTML 2018-01-04 13:27:42 +08:00
Le Tan
9e5f3abb4b bug-fix: add some margin for jumping title 2018-01-01 12:22:38 +08:00
Le Tan
f6cf98c827 do not highlight code blocks without lang specified by default 2017-12-21 21:02:56 +08:00
Le Tan
06fc4d5831 support custom code block style of highlightjs
Add two config:
- template_code_block_css
- template_code_block_css_url
2017-09-30 19:01:21 +08:00
Le Tan
7fd2273aad support line number in code block in both read and edit mode 2017-09-12 20:28:40 +08:00
Le Tan
d01996288f flash current anchor in read mode when jumping into it 2017-08-09 20:45:09 +08:00
Le Tan
fea491d938 web-view: support title navigation shortcuts
Like Vim mode, support following title navigtion shortcuts:

[[, ]], [], ][, [{, ]}.
2017-07-14 19:37:51 +08:00
Le Tan
f911c60c79 support flowchart.js
VNote supports flowchart.js in all for renderers.
2017-07-01 10:19:47 +08:00
Le Tan
927c0f5c27 bug-fix: Ctrl+D/U to scroll down/up half page instead of one page 2017-06-23 19:45:27 +08:00
Le Tan
88fa722868 dragging mouse with Ctrl and left button pressed to scroll in read and edit mode 2017-06-13 16:24:48 +08:00
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
5b4984f59a bugfix: wait for images loaded before exporting PDF 2017-05-23 19:22:49 +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
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
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
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
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