52 Commits

Author SHA1 Message Date
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
e46bffa1b1 add welcome page 2018-10-18 19:55:01 +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
35be1516ed markdown-it: use markdown-it-texmath to get rid of escape of MathJax 2018-07-05 20:41:16 +08:00
Le Tan
927bb54502 TagIndicator/TagExplorer: support Navigation mode 2018-07-03 19:38:36 +08:00
Le Tan
3eb3db874e markdown-it: support emoji 2018-05-11 14:39:51 +08:00
Le Tan
6558fa85b7 markdown-it: support specifying image size via markdown-it-imsize plugin
Only supported in read mode.
2018-05-05 12:34:17 +08:00
Le Tan
4afefbe964 markdown-it: aware of YAML format metadata in notes 2018-04-24 07:53:09 +08:00
Le Tan
8239abec2a support code block MathJax preview 2018-04-11 19:53:33 +08:00
Le Tan
9850d9a2a2 support PlantUML 2018-04-04 20:30:36 +08:00
Le Tan
a2ee5413a1 support search
- Ctrl+E C to toggle the search dock;
2018-03-13 20:45:44 +08:00
Le Tan
7069f7268b palette: add mermaid css file config 2018-02-25 11:04:11 +08:00
Le Tan
1fe7567d79 export: support HTML format 2018-02-25 10:01:18 +08:00
Le Tan
60635fe5e7 export: support custom background, style 2018-02-23 19:54:07 +08:00
Le Tan
8ff520d0fd refactor export 2018-02-13 22:10:48 +08:00
Le Tan
c0c4b8602a add VTipsDialog to display hints about some actions 2017-12-22 19:33:42 +08:00
Le Tan
d14f4697b4 replace palette in clss VNote with VPalette 2017-12-05 19:45:04 +08:00
Le Tan
787c61a5af support meta word
- Add VLineEdit as a QLineEdit with meta data support;
- support custom magic words through [magic_words];
- add %help% for all magic words information;
2017-10-17 19:47:57 +08:00
Le Tan
598e8144bb support custom startup pages
- Support continuing where user left off on startup;
    - Support recovering the edit/read mode and the anchor position;
- Support opening user-specified files on startup;
- Add config startup_page_type, startup_pages, and last_opened_files;
2017-10-11 10:44:18 +08:00
Le Tan
3724eb35dd refactor VDirectoryTree
- Refine folder deletion logics;
- Refine folder copy/paste logics;
- Add folder sort logics;
2017-09-30 09:51:40 +08:00
Le Tan
d955dedcb7 add config mathjax_javascript for Mathjax location and configuration 2017-09-24 10:18:55 +08:00
Le Tan
a64d01ea86 refactor VFile and VOrphanFile
1. Make VFile a real abstract class;
2. Use VNoteFile for internal note file;
3. Use VOrphanFile for external orphan file;
2017-09-21 19:33:37 +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
2e7590de24 add Markdown guide 2017-08-11 20:02:54 +08:00
Le Tan
c2fe857e3a open an external file as internal note if it is a note within VNote 2017-08-07 20:04:18 +08:00
Le Tan
e33ff1fede add Info action to tab context menu 2017-07-17 10:10:18 +08:00
Le Tan
8a56dc8b87 support editing external files 2017-07-15 12:46:04 +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
224a7253ce support subscript, superscript and footnote in markdown-it
Subscript: H~2~O
Superscript: 2^2^=4
Footnote: This is a footnote[^1].\n[^1]: Here is the footnote.
2017-06-04 12:42:57 +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
f43f9c4afc add Showdown renderer 2017-05-18 21:40:02 +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
ab824946e8 register VEditArea and VOutline for Navigation Mode
1. Register VEditArea and VOutline for Navigation mode;
2. Support Ctrl+J and Ctrl+K navigation in VOutline;
2017-04-06 19:39:52 +08:00
Le Tan
611a695cb1 register VFileList for Navigation Mode
Support Ctrl+J and Ctrl+K navigation in VFileList.
2017-04-05 23:36:16 +08:00
Le Tan
6a5fecf8ef Add Navigation Mode to Captain Mode
In Captain Mode, W will trigger the Navigation Mode. In this mode,
registered widgets will display some characters for hints and after user
pressing the the keys, corresponding widget will take action as response.

For now, only VNotebookSelector registers in the Navigation Mode.
2017-04-04 18:02:47 +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
1aa264adc8 support locating current note
Support locating the notebook and directory of current note.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-24 13:09:19 +08:00
Le Tan
edca922f5e support avatar
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 11:21:08 +08:00
Le Tan
9a197b5087 refactor: add VNotebookSelector for notebook management
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-04 22:26:48 +08:00
Le Tan
e7c42ba5be refactor: add VFile and VDirectory
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-30 22:58:00 +08:00
Le Tan
8e8d69c85f refactor: VNote and VNotebook
regression: notebook renaming logics does not work for now

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-26 12:45:29 +08:00
Le Tan
0298b8bfe1 change the look of the notebook combobox
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 16:15:27 +08:00
Le Tan
ab91f755c0 add dock widget to display outline
1. Support displaying outline of Markdown in read mode;
2. Support navigating by outline using Marked;

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-07 21:53:33 +08:00
Le Tan
53bce98db6 support changing rendering background color
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-28 21:06:26 +08:00
Le Tan
5409ce9769 refactor directory and file related logics
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-25 22:25:34 +08:00
Le Tan
be625f561c implement notebookInfoBtn logics
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-23 18:07:05 +08:00