33 Commits

Author SHA1 Message Date
Le Tan
7f2cfe4f52
Pdf view (#2312)
* Draft: feature/pdf_view (#2268)

* build base code

* simple run successful

* add save session

* add pdfjs resource

* simple pdf viewer

Co-authored-by: chendapao <feloxx@163.com>
2022-12-17 18:52:37 +08:00
Le Tan
73ebcaeb90 fix read mode search 2022-08-27 21:41:40 +08:00
zz of NSFOCUS Security Team
53e2b3bfa8
Fix export html/pdf problem in Qt 5.15.5 (#2199)
maybe related https://github.com/vnotex/vnote/issues/1942   export PDF cpu 100%

```
Critical:(markdownviewer.js:103) Uncaught TypeError: Failed to delete an indexed property from 'NodeList': Index property deleter is not supported.
[520896:520896:0801/171207.286744:INFO:CONSOLE(103)] "Uncaught TypeError: Failed to delete an indexed property from 'NodeList': Index property deleter is not supported.", source: file:///home/henices/.local/share/VNote/VNote/web/js/prism.js (103)
```
2022-08-01 21:49:09 +08:00
Le Tan
a31a7a32a5 MindMap: preparations 2022-04-01 21:28:49 +08:00
Le Tan
8a1bd930eb Fixes
1. PlantUmlWebService override;
2. Shortcut to clear highlights;
3. Save ViewArea session on minimized to system tray;
4. Prompt for restart after Settings
2022-03-31 21:21:15 +08:00
Le Tan
2908148c00 $$: no need to add blank line before $$ start 2022-03-10 20:20:20 +08:00
Le Tan
a4a5dea3d7 fixes
* MarkdownViewWindow: add switch for code block line number
* MarkodwnViewWindow: fix Turndown <style> issue
* MarkdownViewWindow: add config for overridding MathJax script
* SortDialog: fix sorting issue of date
* FramelessMainWindow: fix StayOnTop issue
2022-01-10 20:06:45 +08:00
Le Tan
eff1a81125 MarkdownViewWindow: use web to highlight code block in editor 2022-01-07 20:43:08 +08:00
Le Tan
956842f102 support equation begin in MathJax 2021-12-06 21:03:54 +08:00
Le Tan
4d41421fb8 support input method on macOS in tag popup 2021-11-13 17:24:56 +08:00
Le Tan
e2fda18dbd MarkdownViewWindow: fix EditPreview 2021-11-12 07:53:30 +08:00
Le Tan
dc0a9b1a7d MarkdownEditor: add option for image align center 2021-11-03 07:45:06 +08:00
Le Tan
ed8cd503b5 Search: highlight matched items in opened files 2021-08-26 20:33:49 +08:00
Le Tan
8326d3c702 Export: support custom export 2021-08-23 20:50:52 +08:00
Le Tan
e9799990f0 MarkdownEditor: add graphviz as the language of Graphviz 2021-08-12 22:04:43 +08:00
Le Tan
30e3b5721e bug fix
1. InsertImageDialog crashes when file does not exist;
2. Use &nbsp; for leading spaces of <p> element in Turndown;
2021-06-24 21:36:47 +08:00
Le Tan
79abddd802
support local PlantUml and Graphviz (#1776) 2021-05-29 09:24:55 +08:00
Le Tan
a2d180ea12 update Mermaid.js to 8.9.1 2021-03-17 22:19:21 +08:00
Le Tan
877001587b small fixes 2021-02-26 20:26:43 +08:00
Le Tan
04a57f4f8d support export 2021-02-23 20:26:15 +08:00
Le Tan
9e20f1b0a6 support section number base level [1,3] in read mode 2021-01-12 20:34:45 +08:00
Le Tan
6503b433e1
Dev (#1644)
* add file type combobox in NewNoteDialog

* add SectionNumberStyle
2021-01-07 20:41:45 +08:00
Le Tan
9dd83a6f2f
small fix (#1641) 2021-01-05 07:01:19 +08:00
Le Tan
d376d1125e small fix 2021-01-01 04:22:33 -08:00
Le Tan
759c562eb8
add theme moonlight (#1636) 2020-12-31 19:53:28 +08:00
Le Tan
a0481f2e5b MarkdownViewer: expose more configs 2020-12-22 04:40:32 -08:00
Le Tan
0735764a34 remove heading sequence in header ID 2020-12-22 04:40:32 -08:00
Le Tan
6dce8e65a7
add Chinese translations (#1615)
* add Chinese translations

* remove widgets_zh_CN.ts and update qt_zh_CN.ts

* refine
2020-12-21 21:12:19 +08:00
Le Tan
e55434965b fix markdown-it-texmath 2020-12-15 22:44:23 +08:00
Le Tan
bb3f03fb17 toc support 2020-12-15 22:43:46 +08:00
Le Tan
c95e850bb1
refine macOS and release v3.0.0-beta.1 (#1594)
* refine macos

* release v3.0.0-beta.1
2020-12-13 20:28:42 +08:00
Le Tan
847e3d621d
support find and replace (#1593)
TODO: we may need to transform the `QRegularExpression` usage to the `RegExp` in JS.
2020-12-13 12:34:43 +08:00
Le Tan
52702a32e9 hard days for VNoteX project
Never say "refactor" again!!!
2020-11-28 23:10:43 +08:00