81 Commits

Author SHA1 Message Date
Le Tan
8b8743a1e8 recover mdeditor 2019-07-27 21:54:50 +08:00
Le Tan
859fb51c07 support read mode via QWebView 2019-07-27 20:19:10 +08:00
Le Tan
151481cfca add config [web]/enable_code_block_copy_button 2019-06-24 20:23:50 +08:00
Le Tan
3b1d9e9cbf remove redundant ending new line when copying code block in read mode 2019-06-15 10:13:58 +08:00
Le Tan
ada7400306 marked: fix code block line number 2019-06-14 19:42:27 +08:00
Yunjie Chen
e78f375e81 markdown: add copy button to code blocks to copy source text 2019-06-08 12:25:10 +08:00
Le Tan
12d5bb27ef markdown: support WaveDrom diagram in language wavedrom code block
In place preview is not supported.
2018-11-30 21:01:31 +08:00
Le Tan
0ef38171e9 web: minor fix 2018-11-10 20:01:24 +08:00
Le Tan
6455e9ca19 style: fix image caption style to avoid mess up after export
Use span instead of div to wrap the image caption.
2018-11-01 21:22:23 +08:00
Le Tan
4ae4960358 markdown-it: MathJax support $.$ in \text{} within $$...$$ 2018-10-31 22:11:40 +08:00
Le Tan
ec15475c87 Turndown: remove title and alt text if they contains invalid characters
It is useful especially for OneNoe.
2018-10-15 19:39:01 +08:00
Le Tan
f85f2cc3a3 web: skip scroll check 2018-10-12 20:20:43 +08:00
Le Tan
74032f4a08 PlantUML: unify online PlantUML process 2018-09-13 19:59:47 +08:00
Le Tan
a7bdcf4d54 Turndown: support parsing table without head 2018-09-13 19:56:18 +08:00
Le Tan
3b2852aa67 LivePreview: smart live preview for online PlantUML 2018-09-12 20:35:52 +08:00
Le Tan
060c02297b LivePreview: support bidirectional smart live preview 2018-09-05 20:16:05 +08:00
Le Tan
774eec32d7 LivePreview: support UseCase diagram 2018-09-03 20:13:32 +08:00
Le Tan
74ec3884d0 LivePreview: search for multiple tokens and select the best match 2018-08-30 19:53:20 +08:00
Le Tan
2bf36319d1 LivePreview: smart live preview for sequence diagram 2018-08-30 19:53:06 +08:00
Le Tan
bf51b7b117 LivePreview: denote smart live preview 2018-08-29 20:47:07 +08:00
Le Tan
126600dbb1 LivePreview: refine smart live preview
- Support class diagram.
- Support activity diagram.
2018-08-28 20:43:51 +08:00
Le Tan
28d5954bc3 MdEditor: fix turndown to parse HTML 2018-08-28 20:43:36 +08:00
Le Tan
cda48a612a LivePreview: smart live preview 2018-08-26 14:12:02 +08:00
Le Tan
6fb6ce3f50 refine Chinese translations 2018-08-23 20:25:58 +08:00
Le Tan
dc1f1c4535 MdEditor: support pasting HTML as converted Markdown text via Turndown 2018-08-17 22:42:21 +08:00
Le Tan
8055f17d1f Preview: add hint for live preview 2018-08-08 20:40:33 +08:00
Le Tan
3e29a647ab MdTab: fix the synchronization between read and edit mode
Mute web view in edit mode.
2018-07-13 21:54:26 +08:00
Le Tan
d9c8051fa3 editor: Ctrl+; to insert inline code, Ctrl+J/K to scroll page 2018-07-07 17:57:00 +08:00
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