167 Commits

Author SHA1 Message Date
Le Tan
a5e81a08ea in-plcae preview not working due to Promise JS error 2019-07-28 13:12:34 +08:00
Le Tan
859fb51c07 support read mode via QWebView 2019-07-27 20:19:10 +08:00
Le Tan
c3a692d33d add QWebView to view html 2019-07-26 22:01:18 +08:00
Le Tan
d8e7583179 adapt to Qt 5.6.1
1. Remove dependency on QWebEngineView
2019-07-22 20:37:59 +08:00
Le Tan
151481cfca add config [web]/enable_code_block_copy_button 2019-06-24 20:23:50 +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
e8b2530ca3 refine translations 2019-01-13 10:54:26 +08:00
Le Tan
64960cc3c5 editor: support prepend_dot_in_relative_path config 2018-12-03 19:51:04 +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
f9e9735d5f Preview: fix glitchy PlantUML preview when no background is specified 2018-11-25 11:20:31 +08:00
Le Tan
28eb48cc2e PegParser: support ~~~ as fenced code block 2018-11-22 20:31:47 +08:00
Le Tan
b6b73c3f82 editor: guess the image title from image path when inserting an image 2018-11-12 20:12:07 +08:00
Le Tan
2637fd90ec markdown-it: support alert text via markdown-it-container plugin
::: alert-info
This is an info text.
:::
2018-11-09 20:37:44 +08:00
Le Tan
f3ff862cfb MathJax: support euqation number
http://docs.mathjax.org/en/latest/tex.html#automatic-equation-numbering
2018-10-30 20:47:28 +08:00
Le Tan
3aaea23545 fix combo box style on macOS 2018-10-25 21:03:41 +08:00
Le Tan
2a7a4f864e WebView: do not set background color to transparent
Setting background color of a web engine page to transparent will force
it to render using grayscale antialiasing.
2018-10-25 21:03:41 +08:00
Le Tan
4cced65863 export: add icon, title and footer to exported HTML 2018-10-17 20:02:10 +08:00
Le Tan
203544632e MdEditor: turn equation from zhihu.com to MathJax when fetching images 2018-10-17 20:01:51 +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
1b95b636e7 image related fixes
- Support previewing cross-line image link;
- Do not consider image title when generating image name and use current
time at the front to make it easy to sort.
2018-10-14 11:59:25 +08:00
Le Tan
6d1830ad86 fix local image path with query parameters 2018-10-12 20:19:31 +08:00
Le Tan
b27da44c7a MdEditor: fix suffix of url with query parameters 2018-10-12 20:19:31 +08:00
Le Tan
5cc8d6c8f1 MdEditor: support downloading images to local when Parse&Paste 2018-09-30 23:00:58 +08:00
Le Tan
574aa4e70a KeyboardLayout: support specifying keyboard layout mappings
Captain mode now supports different layout mappings.
2018-09-29 18:37:50 +08:00
Le Tan
02fc5f20f3 UniversalEntry/Searcher: Ctrl+B to expand/collapse all items 2018-09-26 19:23:56 +08:00
Le Tan
77dd8d0f32 Export: support outline panel in exported HTML file 2018-09-20 19:22:53 +08:00
Le Tan
d66fd7c1c5 InplacePreview: support online PlantUML in-place preview 2018-09-12 20:36:00 +08:00
Le Tan
4d223d0397 MdEditor: insert link or content when dropping file in editor 2018-09-12 20:35:15 +08:00
Le Tan
a055d6e935 Editor: highlight matches of full-text search result in page 2018-09-12 20:34:43 +08:00
Le Tan
c4c7f99ca7 suport Quick Access by Ctrl+Alt+I 2018-09-06 21:11:55 +08:00
Le Tan
ffa413fa26 Captain: fix captain mode in diffrent keyboard layout 2018-09-02 15:21:25 +08:00
Le Tan
22489137ae MathJaxPreview: fix preview while using local mathjax 2018-09-01 11:06:33 +08:00
Le Tan
185f6d0dcb fix image title constraint 2018-08-24 20:14:38 +08:00
Le Tan
5d4b450fab UniversalEntry: add parent directory name before item name in the result 2018-08-22 20:08:32 +08:00
Le Tan
f98c2f5382 MdEditor: aware of links and images in edit mode 2018-08-18 18:47:29 +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
b9da920bb4 Preview: fill background 2018-08-15 21:07:22 +08:00
Le Tan
35f66ba88e Preview: scale SVG via QSvgRenderer 2018-08-15 19:55:20 +08:00
Le Tan
4fbe2d87b7 MdEditOperations: support auto block quote 2018-08-09 20:00:42 +08:00
Le Tan
e2eb4efb45 MdEidtOperations: support * as list bullet in auto list 2018-08-08 20:40:45 +08:00
Le Tan
efd3740198 add hint for re-opening tabs 2018-08-07 20:59:33 +08:00
Le Tan
bfac189cb7 PegMarkdownHighlighter: cache result for performance 2018-07-30 21:55:07 +08:00
Le Tan
8679ffa051 PegMarkdownHighlighter: improve performance 2018-07-29 10:17:59 +08:00
Le Tan
59efed94f3 config: add [global]/image_name_prefix for inserted images 2018-07-15 20:06:05 +08:00
Le Tan
f5bbc1ccd7 PegHighlighter: support math 2018-07-13 20:32:22 +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
b2690a42e7 bug-fix: exclude all whitespaces except space in file name 2018-06-30 22:17:20 +08:00
Le Tan
fad6003660 export: fix rendering issue of non-ASCII chars in Graphviz
We use SVG format for Graphviz when exporting to PDF to avoid specifying
proper font.
2018-06-30 22:15:55 +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
dceec24021 Utils: fix onlyHasImgInHtml() to consider <span> and <div> 2018-06-08 20:02:42 +08:00