Commit Graph

1209 Commits

Author SHA1 Message Date
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
Felix Häusler
625c926585 Revert #1616 One-Dark color changes (#1694) 2019-11-13 09:47:04 +08:00
Felix Häusler
184861f7b9
Fix extractWord issue and optimization (#1674) 2019-11-11 17:37:22 +01:00
Felix Häusler
a3428b5151
Ensure Hunspell dictionary before downloading (#1675) 2019-11-11 17:37:00 +01:00
Felix Häusler
c7ae487e6e
Temporary disable numbered code block lines due to #1648 (#1658)
* Temporary disable numbered code block lines due to #1648

* Set default value to false
2019-11-08 18:40:29 +01:00
Patrick Weingaertner
ca2149e4fb apply option key symbol conditionally. change command key symbol from ^ to ctrl. adjust css
make sure text is right aligned

revert width auto

revert width auto
2019-11-08 00:25:24 +08:00
Felix Häusler
245962a6a1 Add Windows spell checker and fixes (#1624)
* Add Windows spell checker and fixes

* Fix build failure on macOS

* Fix preference visibility
2019-11-08 00:25:24 +08:00
Felix Häusler
0dc7038083 Fix wrong condition 2019-11-08 00:25:24 +08:00
Felix Häusler
e919ea70d9 Fix allowed paragraph transformations 2019-11-08 00:25:24 +08:00
Felix Häusler
0649ab3125
Fix Hunspell dict installation (#1642) 2019-11-07 15:36:09 +01:00
Felix Häusler
e78e4c6b10
Fix outdated export command (#1627)
* Fix outdated export command

* Fix more commands by focusing editor
2019-11-06 18:53:22 +01:00
Felix Häusler
be35982985
Misc style changes and marked (#1626) 2019-11-06 18:53:03 +01:00
Felix Häusler
4f8d0c1a93
Support final newline options (#1595)
* Support final newline options

* Fix docs and add command
2019-11-06 18:52:47 +01:00
Ran Luo
047aad2bbc
Merge pull request #1616 from marktext/opti-search-in-folder
Optimization search in folder
2019-11-06 23:42:33 +08:00
jocs
5196df94b0 Change title color 2019-11-06 23:42:05 +08:00
Ran Luo
4cadbcba49
Merge pull request #1617 from marktext/render-performance
Optimization of render performance
2019-11-06 23:32:24 +08:00
jocs
129aeb5a57 Use non-capture group 2019-11-06 23:31:21 +08:00
Ran Luo
804555b04b
Merge pull request #1623 from marktext/update-help-menu
Update help menu
2019-11-06 23:28:23 +08:00
Ran Luo
852f5d1845
Merge pull request #1625 from marktext/fix-rg-search-hidden
Fix include hidden condition
2019-11-06 23:23:15 +08:00
Ran Luo
b7468117e9 fix #1574 (#1593) 2019-11-06 16:00:22 +01:00
Felix Häusler
fe8f921d4f
Fix include hidden condition 2019-11-06 15:55:36 +01:00
Ran Luo
ffafb11aee
Merge pull request #1613 from marktext/fix-1602
fix: #1602 the current window is shown as undefined
2019-11-06 22:52:57 +08:00
Ran Luo
6a58113f5d
Merge pull request #1610 from marktext/fix-1581
Unselect all images and table cells when dialog is shown
2019-11-06 22:48:46 +08:00
Ran Luo
63fcba73aa
Merge pull request #1611 from marktext/toggle-maxmize
dbclick title bar to toggle fullscreen on macOS
2019-11-06 22:47:27 +08:00
Ran Luo
d19d22a643
Merge pull request #1612 from marktext/fix-1607
Match keyword not only from the beginning #1607
2019-11-06 22:46:43 +08:00
Ran Luo
84f223e243
Merge pull request #1615 from marktext/style-optimization
Style optimization
2019-11-06 22:45:57 +08:00
Ran Luo
c3e1a74433
Merge pull request #1622 from marktext/opti-aidou-style
style optimization of aidou
2019-11-06 22:42:55 +08:00
Ran Luo
028797bbff
Merge pull request #1561 from marktext/fix-628
Auto scroll cursor to visible if the cursor is too low
2019-11-06 22:42:07 +08:00
Ran Luo
a2bad06d3c
Merge pull request #1590 from marktext/fix-1582
Fix: unexpected load all languages
2019-11-06 22:41:09 +08:00
jocs
79d0ea672d Change develop to master doc 2019-11-06 22:35:49 +08:00
Ran Luo
dfc73900aa
Merge pull request #1572 from marktext/code-block-line-numbers
feat: add code block line numbers
2019-11-06 22:27:06 +08:00
jocs
e0f9a46c86 Update help menu 2019-11-06 22:18:35 +08:00
jocs
197f80bdd1 style optimization of aidou 2019-11-06 21:45:49 +08:00
罗冉
5e897d350f Optimization of render performance 2019-11-06 15:49:12 +08:00
罗冉
139a7066db modify highlight style 2019-11-06 13:59:25 +08:00
罗冉
12c2b9d161 style optimization 2019-11-06 13:45:30 +08:00
罗冉
a8bb4bd2f7 Optimization search in folder 2019-11-06 13:14:25 +08:00
jocs
e67fdc3469 Opti: the style in number input 2019-11-06 09:35:00 +08:00
Ran Luo
77b1b171c1
Merge pull request #1550 from marktext/pandoc-workaround
WORKAROUND: Add environment variable for pandoc
2019-11-05 16:58:36 +08:00
罗冉
a1a91f3904 fix: #1602 the current window is shown as undefined 2019-11-05 15:31:46 +08:00
罗冉
8780f7d22a Match keyword not only from the beginning #1607 2019-11-05 15:08:35 +08:00
罗冉
e0ac7dbad7 modify the event prefix between main and renderer process 2019-11-05 13:36:39 +08:00
罗冉
abdcebed41 Unselect all images and table cells when dialog is shown 2019-11-05 13:08:14 +08:00
Felix Häusler
f142dea160
Add command palette and quick open dialog (#1493)
* Add command palette and quick open dialog

* Fix format and paragraph commands

* Adjust style and allow to reset list/quote

* Adjust UI and fix some issues

* Add custom placeholder
2019-11-04 19:50:50 +01:00
Ran Luo
f718ca7f14
Merge pull request #1594 from marktext/adjust-export-style
Adjust export theme style
2019-11-04 14:39:51 +08:00
Ran Luo
6a286dfb6b
Merge pull request #1563 from marktext/fix-1523
add error notice when there is something wrong with exporting
2019-11-04 00:53:31 +08:00
jocs
f3b15f3d7c Optimization of log.error mesg 2019-11-04 00:52:55 +08:00
Ran Luo
26e807db08 Fix: ui error in theme setting page (#1589) 2019-11-03 17:46:31 +01:00
Felix Häusler
ca57e59a48
Adjust export theme style 2019-11-03 17:15:32 +01:00
jocs
2dd8471c15 Fix: unexpected load all languages 2019-11-03 17:41:34 +08:00
jocs
c3946b4da9 use throttle util 2019-11-03 13:50:40 +08:00
jocs
239de6f34c update line number position 2019-11-03 13:44:23 +08:00
jocs
4726553a34 fix conflict 2019-11-03 10:58:13 +08:00
jocs
07a014e891 handle clean up 2019-11-03 10:52:28 +08:00
jocs
af8c17cf37 add error notice when there is something wrong with exporting 2019-11-03 10:48:13 +08:00
jocs
a43a8b0d12 remove magic number 2019-11-03 10:44:15 +08:00
jocs
d096819cae Merge branch 'develop' into fix-628 2019-11-03 10:32:10 +08:00
Ran Luo
fed4eafcca
Merge branch 'develop' into fix-1578 2019-11-02 23:52:41 +08:00
Felix Häusler
09f920eade
Upgrade to Electron 7 (#1543)
* Upgrade to Electron 7

* Fix E2E test issue with Electron 7

* Fix native theme event

* Remove runtime native theme detection

* Update Electron to v7.0.1

* Fix keytar exception
2019-11-02 16:41:51 +01:00
Ran Luo
0ced076328
Merge pull request #1576 from marktext/unsplash-ux
Improve image picker UX
2019-11-02 23:03:14 +08:00
Ran Luo
1fbc0bfb7f
Merge pull request #1570 from marktext/fix-1569
fix #1569
2019-11-02 22:57:01 +08:00
Ran Luo
fd18637d64 fix #1579 (#1587) 2019-11-02 15:55:43 +01:00
Ran Luo
7377de3c12
Feat footnote (#1546)
* feat: footnote identifer

* feat: add update to footnote

* modify some style

* Create footnote from identifier and backlink

* handle backspace in footnote

* export markdown

* add export html

* add export style

* modify style

* feat: add footnote setting option

* fix some bugs

* feat: fix [^longnote] is not auto numbered in exported document but in footnotes.

* Enter to create footnote

* modify some style of footnote

* update footnote icon and add highlight format icon button

* fix #1568
2019-11-02 22:51:05 +08:00
Ran Luo
68e4a9ce7e fix #1583 (#1585) 2019-11-02 15:50:38 +01:00
Ran Luo
070ef96b7a fix: #1466 (#1562) 2019-11-02 15:28:44 +01:00
Ran Luo
3105228774 fix #1547 (#1560) 2019-11-02 15:20:21 +01:00
Ran Luo
07ef9cba0f Fix 1551, and also fix no need heading rules in table cell (#1558)
* Fix 1551, and also fix no need heading rules in table cell

* no need to hide heading # in table cell
2019-11-02 15:18:58 +01:00
Felix Häusler
be64ab6d4b
Adjust style 2019-11-02 15:01:28 +01:00
Felix Häusler
60bb2a0d5c
Improve image picker UX 2019-11-02 12:08:47 +01:00
jocs
d7b655ac6c fix #1578 2019-11-02 10:46:39 +08:00
Felix Häusler
30997f0d26 Fix no underline spell checker mode (#1584) 2019-11-02 09:09:20 +08:00
Felix Häusler
ba3e6f6110 Improve spellchecker UX (#1575) 2019-11-02 01:37:31 +08:00
罗冉
079e654131 Fix style bug 2019-11-01 18:59:05 +08:00
罗冉
7aa0d1bf4d Feat: add copy code block button 2019-11-01 18:43:41 +08:00
罗冉
a028a7c2bb feat: add code block line numbers 2019-11-01 17:24:18 +08:00
罗冉
154b22058d fix #1569 2019-10-31 16:41:09 +08:00
罗冉
a006781fad fix #1568 2019-10-31 15:56:42 +08:00
jocs
baa18252a8 fix:# 628 2019-10-30 21:22:24 +08:00
罗冉
09c7244dfe update footnote icon and add highlight format icon button 2019-10-30 16:58:11 +08:00
罗冉
0d001649b1 modify some style of footnote 2019-10-30 12:56:03 +08:00
罗冉
38d24056c4 Enter to create footnote 2019-10-30 12:42:39 +08:00
罗冉
efd38644cd feat: fix [^longnote] is not auto numbered in exported document but in footnotes. 2019-10-30 11:36:39 +08:00
罗冉
8886517c3a fix some bugs 2019-10-29 18:48:20 +08:00
罗冉
318bfc6aa2 feat: add footnote setting option 2019-10-29 18:36:16 +08:00
罗冉
b4788f559a modify style 2019-10-29 18:00:01 +08:00
罗冉
e62f660e56 add export style 2019-10-29 17:53:29 +08:00
罗冉
5061548784 add export html 2019-10-29 17:32:53 +08:00
罗冉
7f48a55f1c export markdown 2019-10-28 15:00:33 +08:00
罗冉
3f74a8809f handle backspace in footnote 2019-10-28 11:59:51 +08:00
Felix Häusler
8436aeb499 Update documentation (#1548)
* Update documentation

* Remove <br> due to issues with preview
2019-10-28 07:53:30 +08:00
Felix Häusler
9c8f14cfd2 Hide render container from Muya (#1549) 2019-10-28 07:48:58 +08:00
Felix Häusler
cc2e9d13c0
WORKAROUND: Add for environment variable for pandoc 2019-10-27 17:28:34 +01:00
罗冉
ec91b31d49 Create footnote from identifier and backlink 2019-10-27 23:52:23 +08:00
罗冉
c7a2317eab modify some style 2019-10-27 18:25:52 +08:00
罗冉
fc89d04acc feat: add update to footnote 2019-10-27 18:16:29 +08:00
罗冉
37b96c8833 feat: footnote identifer 2019-10-27 16:18:04 +08:00
Ran Luo
c6708e9d9a
fix: #1540 (#1542)
* fix: #1540

* adjust style
2019-10-27 01:04:18 +08:00
Ran Luo
42500d0ee3 Fix 1521 (#1538)
* fix style error when show inline math

* Fix: parse inline math error

* remove debug code
2019-10-26 18:46:31 +02:00
Ran Luo
ab97336e89
Feat: add highlight menu item (#1532) 2019-10-27 00:38:22 +08:00
Ran Luo
168257605f
feat: add find in folder shortcut (#1539)
* feat: add find in folder shortcut

* Modify the menu item label
2019-10-27 00:31:01 +08:00
Ran Luo
8eb5db8f12
fix: #1522 (#1537) 2019-10-27 00:19:36 +08:00