Commit Graph

1209 Commits

Author SHA1 Message Date
Felix Häusler
bdaca98876
Update Electron to v15 (#2772)
* Prepare Electron >=14 upgrade

* Replace spectron with playwright

* Upgrade Electron to v15

* Fix unit test issue with @electron/remote

* Use per day cache directory for E2E tests

* Fix code style
2021-12-18 21:52:24 +08:00
Felix Häusler
0dd09cc684
fix XSS on language input and hyperlinks (#2548, #2601) (#2765) 2021-12-16 21:14:06 +01:00
Kiyoka Nishiyama
c631d00f6a
fix: issue 2652 Fixed a problem with image links being absolute paths. (#2676) 2021-12-11 12:36:57 +01:00
Felix Häusler
30e8e07e83
Enable Github Actions for Linux and macOS (replacing Travis CI) (#2691) 2021-12-02 17:33:14 +01:00
orosmatthew
c2c90f14ad
fix: unable to un-indent a list item (#2640)
fixes issue #2466 where shift-tab did not un-indent a list item
2021-11-30 00:12:53 +08:00
danila-io
c1d603f39d
Fix a typo (Paragraphs instead of Paragraph) in the counter tooltip (#2614)
Co-authored-by: Danila <4106339-danila-io@users.noreply.gitlab.com>
2021-07-04 18:02:12 +08:00
Michelle S
f501ef46cc
Fix typo (#2583)
'true' misspelled as 'ture'
2021-06-09 11:20:21 +08:00
Felix Häusler
0fa6c33c44
Fix unable to open URL (#2453) 2020-12-30 10:49:33 +01:00
Felix Häusler
2b53a414f9
Add support for relative image directory (#2439) 2020-12-23 23:24:27 +01:00
Felix Häusler
38935cc40c
Add TOC generator to document exporter (#2391) 2020-12-23 23:23:20 +01:00
Felix Häusler
08231c0c22
Improve undo history (#2437) 2020-12-23 14:20:50 +01:00
Felix Häusler
b83bc5cd8f
Disble MathML due to DOMPurify security issues (#2436) 2020-12-18 23:25:23 +01:00
Felix Häusler
e4b33816cf
Upgrade to N-API and Electron 11 (#2422)
* Upgrade to N-API and Electron 11

* Update Electron and remove workaround

* Fix ESLint error
2020-12-18 18:25:59 +08:00
Felix Häusler
981875181c
Fix symbolic links and related path issues (#2416) 2020-12-17 23:19:46 +01:00
Felix Häusler
19eab7d1fc
Add option to disable HTML rendering (#2414) 2020-12-17 23:19:22 +01:00
Felix Häusler
2634f42204
Rebase markedjs bug fixes (#2419) 2020-12-17 23:18:55 +01:00
Felix Häusler
2176d24159
Fix font selection autocomplete (#2420) 2020-12-07 11:02:18 +08:00
Felix Häusler
fff183e32e
Allow to copy table cells text as plaintext (#2409) 2020-11-30 22:16:32 +01:00
Felix Häusler
f6ac392c32
Replace text when only one table cell is selected (#2413) 2020-11-30 22:16:10 +01:00
Felix Häusler
d2fb5a1f3e
Make global menu fields mutable (#2407) 2020-11-30 22:15:49 +01:00
zmen
3571bba0ec
feat: add shortcut for toggle-toc (#1863) (#2326) 2020-11-30 22:10:22 +01:00
Felix Häusler
640df640a4
Fix footnote inline code font size (#2411) 2020-11-30 16:19:52 +08:00
Felix Häusler
22cdd11864
Allow BCP-47 language codes in spell checker (#2410) 2020-11-30 16:17:02 +08:00
Felix Häusler
5878e4c514
Restrict export dialog file extensions (#2408) 2020-11-30 16:14:36 +08:00
Felix Häusler
c24ef6ea4b
Support negative zoom (#2412) 2020-11-30 16:08:48 +08:00
He Linming
63642d3921
fix: typewriter shake after press enter (#1852) 2020-11-29 16:33:38 +01:00
Felix Häusler
dd672d75f1
Update dependencies (minor only) (#2402) 2020-11-28 14:09:08 +01:00
bmvisoky
e1498c6e8a
Fix graphite light wordcount (#2392) 2020-11-27 14:03:06 +01:00
zmen
b1ac9bf064
fix: prism language missing while load dependent language (#1752) (#2335) 2020-11-27 14:02:22 +01:00
evan-cohen
5fb130d96f
fix: #2330 enable shift+tab for table navigation (#2331) 2020-11-27 14:00:43 +01:00
Dan Munckton
de30d1e3fc
Fix quick open bug and freeze constants to avoid accidental mutation (#2323) 2020-11-27 13:59:56 +01:00
Anton Freeman
0e0c72d313
fixed issue#2383 (#2397) 2020-11-27 13:56:59 +01:00
Amauri Bizerra
0028a4bc64
Fix issue with not being able to copy table cell (#2375) 2020-11-27 13:55:58 +01:00
Vincent Emonet
18821677be
Add codeblock highlight and coloration for the SPARQL and Turtle languages (#2365) 2020-11-25 21:38:01 +01:00
Max Lantas
ea4486d345
pass file.id to closeTab on middle click (#2272) 2020-11-25 21:34:25 +01:00
Sweet Liquid
81f0b45005
Update regex of auto link to fix trailing slashes (#2354) 2020-10-23 14:21:15 +08:00
Felix Häusler
1e7ff90685
Release v0.16.2 (#2200)
Bump version to 0.16.2 and update documentation.
2020-06-18 21:57:23 +02:00
brainchild0
b71b6ffccf
Conform user-interface text to conventions for trailing punctuation (#2209) 2020-06-18 12:58:59 +02:00
Felix Häusler
b8e2cd8239
Fix inline html renderer (#2224)
* Fix sub- and superscript in HTML output

* Update dependencies
2020-06-18 11:37:15 +02:00
Rasmus Eneman
a853752129
Support setting text direction via comand palette (#2194) (#2195) 2020-06-11 01:12:22 +02:00
Felix Häusler
44e15a34b7
Update dependencies (#2199) 2020-06-08 14:03:30 +02:00
Felix Häusler
c53246df13
Fix double used shortcut (#2198)
* Fix double used shortcut

* Update documentation
2020-06-08 14:03:17 +02:00
Felix Häusler
393139e5c9
Fix unnecessary character sanitation on clipboard output (#2197) 2020-06-08 14:03:03 +02:00
brainchild0
c79f84e5cb
Improve English grammar in user-interface text. (#2075) 2020-06-07 12:57:29 +02:00
Felix Häusler
a66fe39637
Fix bad font when exporting document on macOS (#2190) 2020-06-07 11:01:45 +08:00
He Linming
17e2860d41
feat: switch tabs using alt-#num (#1975) 2020-06-07 01:10:12 +02:00
Felix Häusler
5bb7856cb4
Add GitLab math block support (#2119) 2020-06-04 01:31:21 +02:00
Felix Häusler
79c7200406
Fix footnote renderer exception in markedjs (#2162) 2020-05-31 23:20:56 +02:00
Felix Häusler
8c4cc20bd1
Fix image export issues on Windows (#2129) 2020-05-31 23:18:18 +02:00
BeatLink
5700290148
Increase indentation for sidebar treeview (#2161) 2020-05-31 23:17:16 +02:00
Felix Häusler
6263d18eb3
Disable and hide unnecessary settings options (#2138) 2020-05-31 15:20:32 +08:00
Felix Häusler
954de817de
Fix Hunspell spell checker initialization on Windows (#2137) 2020-05-31 15:17:47 +08:00
Felix Häusler
9c6526ff87
Improve heading font size scaling (#2135) 2020-05-31 15:14:33 +08:00
Felix Häusler
5aa027cbad
Add missing encoding entry (#2132) 2020-05-31 15:12:26 +08:00
Felix Häusler
9b873b5f57
Fix empty shortcuts in shortcut validator (#2130) 2020-05-31 15:10:24 +08:00
Micael Dias
016c7b4c15
Fix max width of editor tabs (#2097)
* Fix max width of editor tabs
2020-05-23 21:41:41 +02:00
jocs
18eb4efd1a fix: style error in editor setting 2020-03-27 21:58:25 +08:00
Ran Luo
bf322a0231
update readme (#2008)
* update readme

* remove unused codes

* Update third party

* remove unused codes
2020-03-27 14:15:47 +08:00
jocs
904d4b4ff3 Fix conflict 2020-03-27 11:59:04 +08:00
Ran Luo
fe641a67f0
fix context menu on macos (#1993)
* fix context menu on macos

* update yarn.lock

* update lock file

* try to fix CI error

* try to fix CI error
2020-03-25 10:54:53 +08:00
Felix Häusler
6dfa793887
Fix inline math selection (#1959) 2020-03-22 15:52:37 +08:00
Felix Häusler
584d630afe
Fix image alignment in exported document (#1958)
* Fix image alignment in exported document

* Move renderer container out of window
2020-03-21 10:01:02 +08:00
Felix Häusler
cf49093aec
Fix Axios http adapter and update deps (#1989) 2020-03-21 09:02:01 +08:00
Ed Luff
9dda975d9b
fix: grammar (#1970)
* docs: grammar

* preferences: grammar

* renderer/prefs: grammar

* render/prefs/editor: grammar fixes

* Update index.vue

* fix (renderer/prefs/general): grammar

* grammar

* prefs/spellchecker: grammar

* incorporate feedback

* slight tweaks to wording
2020-03-17 19:02:33 +01:00
Ran Luo
65f1bef31b
fix regexp in schema file (#1923) 2020-03-02 12:56:09 +08:00
Ran Luo
6a50b5cb69
fix: Editor jumps to last cursor if you toggle a task-list item (#1911) 2020-02-16 18:36:16 +08:00
Ran Luo
1e21689331
fix: export invalid math (#1902) 2020-02-11 21:56:36 +08:00
Ran Luo
1c7e852731
fix: can not select Chinese font family name. (#1901) 2020-02-11 21:56:12 +08:00
Ran Luo
f99addd239
fix: Cannot destructure property row of i as it is null. (#1900) 2020-02-11 21:55:15 +08:00
Ran Luo
609e435e9f
fix: Issue with paragraph starting with three or more * (#1899) 2020-02-11 21:54:44 +08:00
Ran Luo
7f087a04ab
fix: Math formula preview is not updated (#1898) 2020-02-11 21:54:13 +08:00
He Linming
3103aee8ed
A task checked should update related task (#1737)
* A task checked should update related task

* Improve code quality

* feat: add a option for autoCheck

* refactor: put autoCheck in Editor part

* refactor: refactor some functions and methods

1. fix autoCheck was not passed to the editor
2. put getParentCheckBox and cumputeChecboxStatus functions in utils folder.
3. put setCheckBoxState, updateParentsCheckBoxState, updateChildrenCheckBoxState
   and listItemCheckBoxClick methods in clickCtrl.js file.
2020-02-11 21:46:24 +08:00
Davis Riedel
862324387c Fix #1879 Add .md extension to files created in sidebar if no extension is given (#1886)
* Fix #1879: Add .md extension to files created in sidebar if no extension given.

* Use hasMarkdownExtension function everywhere an extension has to be checked.

Allowed markdown extensions are handeled in several places in different ways. Use the hasMarkdownFunction from common/filesystem/paths.js to allow to easily update the allowed extensions when needed.
2020-02-08 17:26:37 +08:00
He Linming
632eac3cf3
fix bold or italic hyperlinks can't be opened through Cmd+Click (#1810)
* fix bold or italic hyperlinks can't be opened through Cmd+Click

close #1698

* Optimize code
2020-02-06 20:33:16 +08:00
DanEble
0aa0e04234
Forbid line-wrap in code blocks (#1051) (#1753)
Long lines in code blocks are not wrapped; instead, a thin scroll bar
is added when the content overflows.  This scroll bar appears
regardless of the user's preference for hiding the scroll bars of the
main content window.
2020-02-06 20:19:39 +08:00
Ran Luo
7a9a170876
update: dependences (#1850) 2020-01-30 21:58:03 +01:00
Felix Häusler
593ca5f83b Refactor IPC selection messages (#1833) 2019-12-31 23:00:04 +08:00
He Linming
3f2e3340b6 feat: word wrap in TOC (#1811)
* feat: word wrap in TOC

close #1772

* rename wordWrap to wordWrapInToc
2019-12-27 22:08:03 +08:00
Alexander Misel
b6869979f0 Variables shouldn't use same color as strings (#1769)
* Variables shouldn't use same color as strings

* Fix dark (okaidia) theme lacking color

picked a color from color wheel which will keep harmony
2019-12-26 16:02:28 +08:00
Felix Häusler
23435ce6b1 fix: 1733 wrong task list indentation in parser (#1835) 2019-12-22 12:52:34 +08:00
Ran Luo
0cd4091137
Update shortcut of table (#1800)
* Update shortcut of table

* change math to display math
2019-12-08 23:48:24 +08:00
Ran Luo
afd530a583
fix: unsplash not shown on production enviromment and about logo did not shown (#1799) 2019-12-07 23:01:05 +08:00
Ran Luo
57c145f06c
Performance optimization of code block (#1783)
* performance optimization of code block

* throttle render in code block

* render immediatly when auto pair
2019-12-05 10:34:16 +08:00
Ran Luo
e91193af23
fix: dompurify warning when init app (#1781) 2019-12-05 10:33:50 +08:00
Simon Holmberg
e3f0df7375 Add setting for sequence diagram theme (#1628) (#1708)
* Add setting for sequence diagram theme (#1628)

* Review fixes
2019-12-02 10:59:17 +08:00
Felix Häusler
eb5f265f1b
Forbid math overlay selection (#1768) 2019-12-01 17:51:27 +01:00
DanEble
f0e548d7e0 fix find next/previous (#1679) (#1745)
* fix find next/previous (#1679)

* document new find next/previous shortcuts (#1679)
2019-11-27 20:09:32 +01:00
Ran Luo
1883153913
fix format tool can not work in table cell (#1760) 2019-11-27 00:50:52 +08:00
Ran Luo
7aa4d1b144
fix export emoji in header (#1759) 2019-11-27 00:50:23 +08:00
Ran Luo
c3f128e725
fix #1678, copy task list should acording to the origin checked status (#1756) 2019-11-27 00:31:13 +08:00
DanEble
3d682ffe22 do not strike through completed tasks (#1680) (#1744) 2019-11-24 23:32:59 +08:00
Ran Luo
fc15356b9b
Fix mermaid diagram is not visiable when export html (#1732)
* Fix mermaid diagram is not visiable when export html

* make the print render container off screen
2019-11-22 19:01:51 +08:00
Ran Luo
980073bc8a
fix: #1668 unexpect encode image url on windows (#1740) 2019-11-22 19:00:49 +08:00
Ran Luo
1d69461502
fix: empty blockquote issue (#1739) 2019-11-22 19:00:15 +08:00
Ran Luo
fb8fca7b50
fix some copy paste list bugs (#1734) 2019-11-22 18:57:39 +08:00
Ran Luo
43aa7bfa84
fix #1666 (#1730) 2019-11-22 18:56:51 +08:00
He Linming
c90bdadb90 Fix jumpClick can't jump to another file (#1725)
* Fix jumpClick can't jump to another file (#1721)

* Clean up code
2019-11-20 22:26:23 +08:00
Mark Jaquith
71f932aa51 Better phrasing of the GDPR warning (#1727) 2019-11-20 14:18:35 +08:00
He Linming
11dfa2529d Fix settings button does not work (#1706) (#1710) 2019-11-15 00:05:48 +08:00
Ziqiang Li
446620dff4 Fixe: https://github.com/marktext/marktext/issues/1696 (#1697) 2019-11-15 00:00:53 +08:00