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
e9238c921e
support color column in fenced code block by config color_column
2017-09-12 08:46:39 +08:00
Le Tan
2eb6476c3d
support auto heading sequence by config enable_heading_sequence
2017-09-11 19:49:30 +08:00
Le Tan
07e8f27776
optimize VImagePreviewer by flags
2017-09-08 21:41:46 +08:00
Le Tan
639d1cb9e9
refactor VCodeBlockHighlightHelper
...
1. Use QVector instead of QList;
2. Use cache for highlight result;
2017-09-05 20:54:15 +08:00
Le Tan
c3408769b0
refactor VImagePreviewer
2017-09-05 20:54:15 +08:00
Le Tan
4730d67393
bugfix: fix nested fenced code block issue
...
The opening ``` and closing ``` should have the same indentation.
2017-06-03 13:23:04 +08:00
Le Tan
5b150a3634
handle HTML comment correctly
2017-06-01 22:05:02 +08:00
Le Tan
a8614839d9
refactor image preview logics by adding VImagePreviewer
...
1. Support previewing non-relative local images;
2. Support previewing network images;
2017-05-06 12:25:18 +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
180ab46367
bugfix: highlight links and images with spaces in URL
...
It is said that URL should not contain spaces. Anyway, we use regular
expression syntax highlighting to complement PEG Markdown Highlight.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-22 19:39:43 +08:00
Le Tan
385abb3041
hide image preview block when selected
...
We do not want user to copy the image preview block (a special char).
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-31 14:13:42 +08:00
Le Tan
a22bf1059d
preview image links
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-17 12:38:01 +08:00
Le Tan
fe4a2cdcc8
move peg-markdown-highlight as a lib to avoid warnings
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-11 23:09:42 +08:00
Le Tan
1a77056f4a
support outline in edit mode
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-10 21:59:37 +08:00
Le Tan
5fa07864a1
move source stuff into src subdir
...
Make it convenient to add third-party libraries.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-22 14:11:33 +08:00