Commit Graph

1209 Commits

Author SHA1 Message Date
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
Ran Luo
ea054dfc5a
Add tooltip to format tool bar (#1516)
* Add tooltip to format tool bar

* Fix typo

* make all editor menu smaller

* remove some unused codes

* modify code picker style

* put front menu at the bottom of front menu icon

* modify style

* Use title attribute to show the description and shortcut
2019-10-27 00:17:54 +08:00
Ran Luo
d4e8bae233 fix #1508 (#1536)
* fix #1508

* add win is not null check
2019-10-26 18:06:38 +02:00
Ran Luo
44228b2af6 fix #1489 (#1535) 2019-10-26 17:17:58 +02:00
Ran Luo
8e32838b8a Feature: support markdown extension superscript and subscript (#1531)
* Feature: support markdown extension superscript and subscript

* Update readme file

* Fix: theme setting error

* fix issue in comment

* Fix some typo
2019-10-26 17:15:49 +02:00
Felix Häusler
e5dc8f1540 Export with options (#1511)
* Export with options

* Fix function names and add documentation

* Narrow scrollbar
2019-10-25 09:03:33 +08:00
Ran Luo
e18ad566d5 Add muya API extractImages (#1507) 2019-10-24 21:07:05 +02:00
Ran Luo
f1f048f53d
Fix can not fetch unsplash pictures (#1518) 2019-10-24 08:37:19 +08:00
Ran Luo
8b593bdd86 Fix: #1509 (#1510) 2019-10-22 21:05:41 +02:00
Ran Luo
5f0ef2c8e6 Fix: enter error in code block (#1506) 2019-10-22 21:01:40 +02:00
Felix Häusler
2c9d3f1e86
Add Windows jump list entries (#1503) 2019-10-22 20:57:22 +02:00
Ran Luo
48280c47cb Fix issue #1490 (#1498)
* Fix issue #1490

* click the editor to hide the search input will not lose cursor
2019-10-22 20:56:52 +02:00
Ran Luo
a4b4a7a847
Feat: add user preference whether hide the link popup (#1504) 2019-10-21 10:42:05 +08:00
Felix Häusler
d0d76f0b5d Fix print page margin (#1488) 2019-10-20 16:18:40 +08:00
Ran Luo
41a2343e0f
Lazy load some big assets and optimize the bundle size (#1481)
* Use snap.svg to replace raphael

* lazy load diagram

* rm debug codes

* Use throw exception instead of console.error
2019-10-20 11:56:11 +08:00
Ran Luo
5d247ec5ee Update spell icon in preference window (#1497) 2019-10-18 18:19:42 +02:00
Felix Häusler
603ed04ab1 Add experimental spellchecker (#1424)
* Experimental spellchecker for testing purpose

* Fix 'apache' license validation

* Use local electron-spellchecker for development

* Add settings and bug fixes

* Fix Hunspell switchLanguage bug and improvements

* Fix attach to editor when enabling spell check again

* Add Hunspell license

* Copy default Huspell dictionary on first start

* Fix full language name

* Some code improvements

* Allow to add words to user dict and  bug fixes

* Allow to change Muya's spellcheck container attribute

* feat: Don't underline misspelled words

* Allow to set Hunspell on macOS

* Fix spellchecker changed value

* Refactor switchLanguage, init and enableSpellchecker

* Refactor and some fixes

* Code improvements

* electron-spellchecker cleanup and optimization

* Disable automatic language detection for Hunspell

* Fix init on macOS and update JSDoc

* Fix macOS issues and some improvements

* Load single settings value only

* Fix rebase

* Remove debug code

* Move electron-spellchecker to scoped npm repo

* Fix dictionary of ignored words on macOS

* Move replaceWordInline to core API

* Remove comment block

* Fix upstream lint error
2019-10-17 15:54:09 +08:00
Felix Häusler
1b9ee786be Fix lint error (#1492) 2019-10-16 09:17:31 +08:00
Felix Häusler
ad41f1c552
Fix recently directories (#1486) 2019-10-15 19:44:38 +02:00
Felix Häusler
929ff58027
Fix EOL menu state (#1487) 2019-10-15 19:44:29 +02:00
Ran Luo
84b50097e5
fix: #1460 and #982 (#1482)
* fix: #1460

* fix: #982 support click preview container and start edit
2019-10-15 08:42:03 +08:00
Ran Luo
289b17c015 Optimization of table block (#1456)
* Prepare for drag and drop row and column

* remove regexp th|td

* render drag button

* Feat: support drag and drop row and column of table

* Feat: table bar tools

* remove unnecessary codes

* Feat: support select multiple cells

* Do not show table drag bar when selected cells

* Feat: support delete selected cells content or remove row/column/table

* Feat: select one cell or table when press ctrl + a

* Support select all content

* Remove table tools in context menu

* Feat: support copy paste selected cells as sub table

* Fix: PR issue 1 press tab will not show the table drag bars

* Select one cell and press backspace will cause bug

* Fix: The table drag bar location error when there are tow tables in the editor

* Fix unable copy and paste 1* n or n * 1 table

* Drag any row to the top to editor will cause error.

* Update table resize icon

* Fix: table resize is not work in table tool bar

* Fix: No need to show left drag bar if only one row, and no need to show bottom drag bar if only one column.

* Fix: Create an empty table in source code mode, turn to preview mode, there are more than two drag bars in one table.

* Fix: resize table

* Opti: table is not 100% width now

* Fix drag in one row or column

* Change table delete icon

* Fix: backspace is not work

* Little style opti

* Fix: cmd + enter bug

* Update the table drag bar context menu text

* Handle delete key when select table cells

* remove all unnecessary debug codes

* Feat: support cut selected cells and copy/cut by context menu

* Fix typo

* Rename some methods name

* Fix an issue when drag and drop table drag bar

* fix do not handle cell selection when the context menu shown

* Do not handle select cells when mouse up outside table
2019-10-13 13:23:00 +02:00
Ran Luo
bcb9d97d61 Can not focus the first empty line in code block (#1477)
* Fix: do not show inline format float tool bar when select text in language input

* Fix: #1460
2019-10-12 19:55:21 +02:00
Ken P
342e9c457a Feat: add menu for tabs (#1434)
* Feat: add menu for tabs

* Rename "Show in file manager" tab menu item to "Show in folder"

* Pass tabID instad of tab object to the menuitem
2019-10-12 19:43:42 +02:00
Felix Häusler
1748eed269 Fix Windows screen area (#1474) 2019-10-12 07:47:40 +08:00
Maksym Dogadailo
edb3f7e758 fix: wrap long lines and a little bit of padding for pre element (#1470)
* fix: word-wrap for pre tag, add padding for pre tag

* fix: use 1em for pre preview
2019-10-10 22:19:20 +02:00
Maksym Dogadailo
50e2e6ce92 fix: settings switch used 100% of width (#1471) 2019-10-10 22:14:36 +02:00
Felix Häusler
9567c143d3 Allow 1x1, 1x2 and 2x1 tables (#1462) 2019-10-10 02:00:17 +08:00
Ran Luo
29a6dc6e4f Fix issue #1455 (#1457) 2019-10-08 20:02:18 +02:00
Ran Luo
5b8da2cdf4
Optimization of code block (#1445)
* duplicate css rule

* remove all codeLine

* Fix: #1446

* Fix #942 #1310

* Fix copy paste will add one more empty line in code block

* remove debug codes

* Fix update thematic break error

* fix: #1447

* Update octokit/rest and url-loader

* Fix: CI test error

* Fix comment issue1

* Fix: escape charachters in code block
2019-10-08 14:12:51 +08:00
Felix Häusler
4a24ff0954 Add file encoding support (#1438)
* Add file encoding support

* Update documentation
2019-10-06 08:45:55 +08:00
Ran Luo
4d728a500e
Support RegExp search and replace in file edit. (#1422)
* Update style of search component

* Opti folder structure

* Finish UI

* Finish all search and replace function

* add notification when match too more or invalid regular expression

* Modify empty string

* Modify stile

* Do init search when press cmd + f
2019-10-06 08:42:06 +08:00
Ran Luo
fab1c62fde Fix issue 1378 (#1405)
* Feat: add trimUnnecessaryEmptyLine setting option

* remove debug code

* Fix: tpro and remove debug codes

* rename trimUnnecessaryEmptyLine to trimUnnecessaryCodeBlockEmptyLines
2019-10-05 14:54:34 +02:00
Felix Häusler
2c15d516c3 Fix application menu exceptions (#1437) 2019-10-04 21:59:47 +08:00
Maksym Dogadailo
9efc1f1e20 fix: ag front submenu is not corresponded to other menus (#1443) 2019-10-04 09:45:51 +08:00
Maksym Dogadailo
bafd7cc0b1 fix: pre tags rendering #1409 (#1442) 2019-10-04 09:42:43 +08:00
Maksym Dogadailo
9ca6410745 fix: style error in tooltip arrow #1417 (#1441) 2019-10-04 09:35:41 +08:00
Ran Luo
01518f6dbf
Opti: support 1 * 1 table (#1371)
* Opti: support 1 * 1 table

* Support open 1*1 table but only support create 2*2 table
2019-10-03 23:04:12 +08:00
Ran Luo
6d2d0fabe0 fix: #1418 Set file watch option usePolling to true on macOS (#1430)
* fix: #1418

* Remove debug code
2019-10-03 15:26:55 +02:00
Ran Luo
344df06d58
Unable to open markdown file by command line (#1429)
* test for open markdown file by command

* change version to 0.15.0
2019-10-03 08:08:16 +08:00
Ran Luo
cb25b3d47f Feat: link tool support html tag:a and reference link (#1415)
* Feat: link tool support html tag:a and reference link

* remove debug code
2019-10-02 23:34:25 +02:00
Felix Häusler
ddf9c50a42
Complete TOML and JSON front matter (#1402)
* Complete TOML and JSON front matter

* Add frontmatter settings
2019-10-02 23:27:29 +02:00
Felix Häusler
1ec2029e39 Set CodeMirror viewport to infinity (#1427) 2019-10-02 09:17:41 +08:00
Ran Luo
c0853f644b
Feat: support auto link and auto link extension (#1421) 2019-10-02 09:12:09 +08:00
Ran Luo
0dc4b4154f Fix: #1218 backspace error in table cell (#1425) 2019-10-01 19:57:25 +02:00
Ran Luo
3fa8a9aef5 Fix: #1061 no need to auto pair in inline code (#1423) 2019-10-01 19:55:09 +02:00
Felix Häusler
63d41155ab Update documents (#1411) 2019-10-01 11:58:44 +08:00
Ran Luo
6920c3e0e3 fix: image uploading error (#1385)
* fix: image uploading error

* replace image url and adjust cursor
2019-09-30 20:02:46 +02:00
Ran Luo
de9c62a0f3 fix #1401 (#1404) 2019-09-30 20:02:09 +02:00
Felix Häusler
a8a74dc4b6
Workaround for #1359 (#1389) 2019-09-30 19:55:32 +02:00
Felix Häusler
134d55a99e
Fix key bindings (#1406) 2019-09-30 18:59:01 +02:00
Felix Häusler
a68fb82eb3
Fix portable directory path (#1403) 2019-09-30 15:40:18 +02:00
Ran Luo
c0e141053c
Opti: save the uploader setting before set as default uploader (#1399) 2019-09-30 09:02:56 +08:00
Ran Luo
91515242d4 fix: #1249 (#1400) 2019-09-30 00:29:03 +02:00
Ran Luo
8e47088260 Fix #1391 side bar can not be scrolled (#1398) 2019-09-30 00:24:33 +02:00
Ran Luo
7a6b0ac5cc Fix: exception when deleting code block indentifier (#1384)
* Fix: exception when deleting code block indentifier

* Fix can not delete code block identifier
2019-09-30 00:21:37 +02:00
Felix Häusler
81af159030
Allow custom fonts (#1394)
* Allow custom fonts

* Filter out empty fonts
2019-09-30 00:16:41 +02:00
Felix Häusler
517fe37c26 Fix portable directory path 2019-09-28 16:48:10 +02:00
Ran Luo
0baf2e9e85 Fix: #1390 prevent XSS attack 2019-09-28 16:48:10 +02:00
Felix Häusler
dee8bb6f5b Fix recommend title exception when heading contains spaces only (#1281) 2019-09-28 16:48:10 +02:00
Felix Häusler
6fae5654c5 Add system emoji fallback fonts (#1348) 2019-09-28 16:48:10 +02:00
Felix Häusler
593deb3dbe fix: #1284 (#1287) 2019-09-28 16:48:10 +02:00
Felix Häusler
132048d5f9 fix: #1382 portable application data directory 2019-09-28 16:48:10 +02:00
Ran Luo
7de33f11f5 Fix: #1390 prevent XSS attack (#1393) 2019-09-28 15:09:06 +02:00
Felix Häusler
f266a5d9fc fix: 1382 portable application data directory (#1395) 2019-09-28 09:13:52 +08:00
Ran Luo
8e7a445735
fix #1135 (#1387) 2019-09-28 09:04:29 +08:00
Felix Häusler
056cdf0c08
Markedjs rebase (#1380)
* Fix breaks: true marked#1507

* Fix <em> issue with mixed content marked#1451

* Fix headings marked#1511

* Link parenthesis marked#1509

* Sanitize hardening marked#1504

* relative baseUrl marked#1526

* remove substitutions marked#1532

* Update documentation

* Use marked.js heading regex
2019-09-27 19:53:44 +02:00
Felix Häusler
067ec48547
fix: #1271 HTML paste handler (#1388) 2019-09-27 19:27:24 +02:00
Felix Häusler
b386630d3c
Add per-tab notifications (#1377)
* Add per-tab notifications

* fix: file watcher depth on macOS

* Free array reference
2019-09-27 19:25:42 +02:00
Felix Häusler
1cac5dbe52
fix: #1349 wrong save all tab order (#1370)
* fix wrong save all tab order

* fix: #1278
2019-09-27 19:25:22 +02:00
Ran Luo
2930cdc052
fix #1297 (#1302)
* fix #1297

* Add comment and label the solved issue
2019-09-27 10:43:56 +08:00
Ran Luo
1eb79083fa
Fix: #1265 (#1373) 2019-09-26 23:47:11 +08:00
Ran Luo
1fef2c6ee8 Fix: #1267 (#1372) 2019-09-26 17:36:45 +02:00
Ran Luo
d45663105b
fix: #1336 (#1365)
* fix: #1336

* fix: #1366
2019-09-25 10:39:40 +08:00
Ran Luo
d9b77366e8 fix #1324 (#1364) 2019-09-24 20:24:38 +02:00
Ran Luo
20220f6b5f Support paste urls from Firefox and others (#1363) 2019-09-24 20:21:00 +02:00
Felix Häusler
8c1865f650
Reorder font settings (#1362) 2019-09-24 20:20:20 +02:00
Ran Luo
1ef0d016a2
Feat: add link tooks: unlink and jump (#1357) 2019-09-24 11:23:51 +08:00
Felix Häusler
e0fb779f3e fix: #1145 (#1360) 2019-09-24 00:34:44 +08:00
Felix Häusler
6418496fe9 Fix main process exception due null access (#1350) 2019-09-24 00:03:37 +08:00
Felix Häusler
a4cd93a8cd
Add system emoji fallback fonts (#1348) 2019-09-23 17:15:07 +02:00
Ran Luo
b4f9f44a9b
Optimization inline image (#1347)
* fix: Hide all float box and image transformer when context click

* fix: image need to have unique id

* feat: support copy,cut and paste selected image

* link to creator

* Feat: prevent drag image

* fix: #1313

* Fix: enter to edit selected image
2019-09-23 11:36:41 +08:00
Ran Luo
46b5aad976
Opti: init loading page (#1339) 2019-09-19 18:24:06 +08:00
Ran Luo
6ab75845e8
Opti image (#1345)
* Feature: size image

* Support edit and delete image

* render img tag by image render component

* Fix: can not recognize pencent symbal in img src

* Feat: align image

* Feat: align image

* add tooltip of image toolbar

* Update html tag regexp

* Fix: wrong class name

* Feat: resize image

* Some bug fix

* Fix: image loading status

* Fix: backspace error in image selector

* Remove: unused codes

* Add download event

* Opti: image

* Opti: style of transformer

* fix: do not treat one image html block as html block

* Fix: parse src and title error

* remove debug codes
2019-09-18 19:01:50 +08:00
Ran Luo
141d25d896
Feat: parse page title when paste a link (#1344) 2019-09-17 16:15:33 +08:00
Ran Luo
d26f509209
Feature: resize image and toggle inline and block image (#1335)
* Feature: size image

* Support edit and delete image

* render img tag by image render component

* Fix: can not recognize pencent symbal in img src

* Feat: align image

* Feat: align image

* add tooltip of image toolbar

* Update html tag regexp

* Fix: wrong class name

* Feat: resize image

* Some bug fix

* Fix: image loading status

* Fix: backspace error in image selector

* Remove: unused codes

* Add download event
2019-09-17 16:15:00 +08:00
Ran Luo
435dca7483
feat: search image by unsplash (#1333) 2019-09-11 11:34:33 +08:00
Ran Luo
a4f5269beb
fix: update paragraph menu item task list error (#1330)
* fix: update paragraph menu item `task list` error

* Update exportStyleHTML api

* Update escapeText, because Safari do not support ?>! in reg
2019-09-11 11:33:25 +08:00
Yansongsongsong
c52431cb92 Feat: github uploader can customize branch(#1328) (#1328) 2019-09-11 11:32:06 +08:00
Ran Luo
3ac2c888b2
remove debug codes (#1326) 2019-09-06 15:19:09 +08:00
Ran Luo
e8efca0eeb
fix: inline image backspace error (#1325)
* fix: inline image backspace error

* Do not show buttons when image is uploading
2019-09-06 15:16:19 +08:00
Ran Luo
9fecc68261
Opti: inline-image style (#1322) 2019-09-05 11:17:19 +08:00
Ran Luo
cb7be189cc
Feat: Support inline image and small image (#1318) 2019-09-03 22:56:46 +08:00
Ran Luo
e25f5d8540
Update: update dialog API to Electron 6.0 (#1317) 2019-09-02 21:46:51 +08:00
Ran Luo
96909e23a9
Opti: correct url when there are pair brackets in link url or image src (#1308) 2019-09-02 18:49:56 +08:00
Ilias Ismanalijev
ab5068ea25 Search shows open folder warning, no results text and errors (#1312)
* Show messages in search
- Open folder prompt
- No result found
- Errors

* search message section use divs, refactor template
2019-09-02 18:07:46 +08:00
Ilias Ismanalijev
437cb23ed8 Search input now searches on keypress (#1307) 2019-09-01 18:33:39 +08:00
Ran Luo
fbbb600d7e
Opti: add loading page when init page (#1303) 2019-09-01 09:57:58 +08:00
Ran Luo
761c499eae
Fix: prevent parse a url (#1301) 2019-09-01 09:56:36 +08:00
Ran Luo
46371f8c56
Update Babel to 7.x.x (#1253)
* update deps

* update babel

* add babel-runtime

* update config file

* update config file

* modify config

* modify some codes

* update some dependences

* Update allowed licenses validate
2019-09-01 03:30:01 +08:00
Ran Luo
ac3617dd7c
fix: vega lite render error (#1295) 2019-08-28 13:23:32 +08:00
Felix Häusler
96f3f7341b fix: #1284 (#1287) 2019-08-19 19:10:57 +08:00
Felix Häusler
1ab8388c1d Cycle through tabs (#1283)
* Cycle through tabs

* Add cycle backwards alias
2019-08-19 19:06:27 +08:00
Felix Häusler
225d30bd90 Close tab by mouse middle click (#1282) 2019-08-19 18:50:27 +08:00
Felix Häusler
15f8c7b2c5 Fix recommend title exception when heading contains spaces only (#1281) 2019-08-19 18:49:52 +08:00
Felix Häusler
04480e08ae fix: #1254 alt accelerator on Linux and Windows (#1262) 2019-08-14 10:49:05 +08:00
Ran Luo
1c489f095e remove unnecessary attrs (#1241) 2019-08-06 16:41:11 +02:00
Felix Häusler
e2bac53e66 Improve updatable packages detection (#1230) 2019-08-04 22:51:50 +08:00
Ran Luo
ac0566762e fix: #1136 (#1222)
* fix: #1136

* fix: negated lookbehind
2019-08-04 15:21:58 +02:00
Ran Luo
af8593a4ce fix: #1226 (#1227) 2019-08-04 15:20:30 +02:00
Ran Luo
c9d7eae952 opti: optimization of paste (#1229) 2019-08-04 15:17:12 +02:00
Ran Luo
da53d9323e fix: #961 (#1220)
* fix: #961

* add TODO
2019-08-04 15:17:01 +02:00
Ran Luo
ee7095f1cc fix: #1208 (#1217)
* fix: #1208

* modify the shortcut of inline math
2019-07-31 20:28:21 +02:00
Ran Luo
f4e93016e3 fix: #1209 (#1214) 2019-07-31 18:47:10 +02:00
Ran Luo
45fa4743ce fix: #1205 (#1216) 2019-07-31 18:44:11 +02:00
Ran Luo
728ae36652
fix: #1203 (#1215) 2019-08-01 00:14:53 +08:00
Ran Luo
ffc01dd270 opti: put the format box at the center of selection (#1213) 2019-07-31 17:57:03 +02:00
Ran Luo
761ff169b0 fix: #1181 reset TOC after close the last tab (#1200) 2019-07-31 17:54:23 +02:00
Escape0707
669918bda2 Fix typos reported by #1199 (#1210)
* Update index.vue

* Update config.js
2019-07-31 14:19:54 +08:00
Ran Luo
72c9d94b14
fix: #1191 and remove hover status (#1197) 2019-07-29 00:01:30 +08:00
Ran Luo
e79b33f337
fix: #1190 (#1196) 2019-07-28 23:50:09 +08:00
Ran Luo
1811b689ba
Support copy&paste raw HTML (#1091)
* remove some unused ele when copy

* reserve ruby tag

* fix: #997
2019-07-26 11:28:47 +08:00
Ran Luo
57af830482
fix: #1169 (#1170) 2019-07-26 11:28:29 +08:00
Felix Häusler
aa0e491f1d Validate uploader services (#1183) 2019-07-26 11:18:58 +08:00
Ran Luo
4a1d5651c6
fix white screen when search in setting window (#1180) 2019-07-26 11:18:22 +08:00
Ran Luo
48d6128e8e
fix: runtime error when click bellow the last paragraph (#1179) 2019-07-26 11:18:04 +08:00
Ran Luo
e7d11ff801
emit crashed event when editor is no longer editable (#1178) 2019-07-26 11:17:43 +08:00
Ran Luo
edbab6edc3
fix: unexpected delete all content when input Chinese (#1177) 2019-07-26 11:17:25 +08:00
Ran Luo
75c043a649
fix: lint error (#1176) 2019-07-25 02:28:48 +08:00
Felix Häusler
2686cfafe4 Update deps and automatically format style (#1168) 2019-07-24 10:57:21 +08:00
Ran Luo
afe688911a feat: add click delete url to clipboard when upload image to SMMS (#1173) 2019-07-23 20:25:17 +02:00
Ran Luo
cea87da5d1 rebase marked #1515 (#1172) 2019-07-23 20:19:55 +02:00
Ran Luo
1a4844f889
fix: history operation(undo/redo) will not emit change events (#1161)
* fix: history operation(undo/redo) will not emit selection change and format change etc

* delete all content need emit changes event
2019-07-23 13:06:10 +08:00
Ran Luo
179f3d3355
Optimization search (#1138)
* add search results

* replace icons in sidebar

* feat: click setting icon to open setting window

* remove some ununsed codes

* fix: #1120
2019-07-23 11:21:14 +08:00
Ran Luo
37c4961ba5 opti: remove all content if selct all content (#1163) 2019-07-22 17:22:33 +02:00
Ran Luo
b925f7d637 fix: cut not work on mobile devices (#1162) 2019-07-22 17:22:24 +02:00
Ran Luo
be74673ad7 fix: #1158 (#1159) 2019-07-22 17:21:46 +02:00
Ran Luo
c2711eb846 fix: #1156 (#1157) 2019-07-22 17:16:26 +02:00
Ran Luo
c7a2735604 fix: #929 (#1122)
* fix: unexpected remove paragraph content when input by Chinese IME on Safari browser

* emit change event only when not composed and selection changed

* add some comments

* fix: #929

* dispatch change event after Enter event

* remove some codes
2019-07-22 17:14:53 +02:00
Ran Luo
7b7a942483
fix: should not nest math block into other math block (#1153) 2019-07-16 09:57:43 +08:00
Ran Luo
67e15b1642 fix: #1151 (#1152) 2019-07-16 00:25:38 +02:00
Ran Luo
b19ff4c212 fix-#1147 (#1148) 2019-07-16 00:25:28 +02:00
Ran Luo
04fead0165
update asios and fix #1121 (#1133)
* update asios and fix #1121

* remove unused codes
2019-07-04 11:14:15 +08:00
Felix Häusler
5f08b381e0 Adjust titlebar title when using native window (#1137)
* Adjust titlebar title when using native window

* Fix untitled tab e2e test
2019-07-04 10:52:51 +08:00
Ran Luo
9d458cf504
fix: screenshot error (#1126) 2019-07-04 10:46:54 +08:00
Alchemy
12958401af delete image triggers muya change (#1125) 2019-06-30 12:41:05 +08:00
Felix Häusler
72702427f1 Add ripgrep as find in files backend (#1086)
* Add ripgrep as find in files backend

* Fix API limit on Appveyor

* Fix css style

* support search and jump (#1)

* Style fixes
2019-06-20 22:46:24 +08:00
Felix Häusler
edf01b2e96 Opt-in uploader services and add legal notices (#1113)
* Opt-in uploader services and add legal notices

* Fix style
2019-06-20 16:22:26 +08:00
Ran Luo
67e1817688
fix: Enter multiple lines in Chinese (#1117) 2019-06-20 10:45:22 +08:00
Ran Luo
ee05052bc5
opti: table border color (#1116) 2019-06-18 17:39:40 +08:00
Felix Häusler
d7defe97dd
Allow to set editor line width and window zoom (#1092)
* Allow to set editor line width and window zoom

* Improve input text changed event

* Make textbox smaller
2019-06-16 15:39:02 +02:00
Ran Luo
47da3bd193 fix: #813 (#1111)
* fix: #813

* add one more para of exportHtml.generate

* remove debug codes
2019-06-16 15:38:14 +02:00
Ran Luo
165e8985b0 fix-#1037 (#1112) 2019-06-15 16:12:54 +02:00
Felix Häusler
0de196cc65 add: auto save with delay (#1093) 2019-06-14 22:16:19 +08:00
Felix Häusler
ddc99aa00e
refactor: main filesystem code (#1104) 2019-06-13 21:23:09 +02:00
Ran Luo
b42b7fe9d7 fix: #1100 and #1101 (#1102)
* fix: #1100

* fix: #1101
2019-06-11 23:08:45 +02:00
Ran Luo
80e6a05acc Opti: image icon style (#1098) 2019-06-11 23:08:11 +02:00
Felix Häusler
b6d6b9fe74 fix watcher out of range exception (#1095) 2019-06-11 11:09:21 +08:00
Ran Luo
d838042543 feat: scroll to cursor when switch between tabs (#1089) 2019-06-10 18:41:24 +02:00
Ran Luo
d924b58623 fix: #752 (#1090) 2019-06-10 18:23:50 +02:00
Ran Luo
de17a920a8 Opti: update TOC if needed (#1088) 2019-06-10 18:23:23 +02:00
Ran Luo
7413c569f6 fix: TOC level error (#1087) 2019-06-09 16:22:41 +02:00
Ran Luo
ccccd6881d Fix: #1045 can not select all content in source code mode (#1085) 2019-06-09 15:44:39 +02:00
Felix Häusler
e6e652713a
Find best window to open second-instance files and directories in (#1054)
* Files via command-line are opened in the best window

* Don't show FSW changed notification while saving

* Fixed source-code mode setting and remove focus/typewritter option

* Simplify ignore list

* Fix invalid dialog parameter

* Fix invalid dialog parameter (2)

* Use async message box dialog

* Update documentation

* few changes

* Check timer before calling clearTimeout

* Improve switch style

* Fix style
2019-06-09 15:41:58 +02:00
Ran Luo
164e9a1d87
fix: insert image by image uploader, but can not copy and paste, because it is render the local url (#1070) 2019-06-07 12:31:18 +08:00
Ran Luo
d937fac09b fix: parse inline syntax error (#1072) 2019-06-06 21:49:49 +02:00
Ran Luo
2bfc3d59fe opti: insert last paragraph when the last block is table, code block or no-empty paragraph (#1069) 2019-06-06 21:44:10 +02:00
Ran Luo
f9d9061d9f opti: style of float box (#1067) 2019-06-06 21:26:20 +02:00
Felix Häusler
4dada5b84d
Drop support for portable Windows binary (#1065)
* Dropped support for portable Windows binary

* Update documentation
2019-06-05 21:39:23 +02:00
Ran Luo
bf39ae0e24 fix: unable to open link (#1063) 2019-06-04 17:07:53 +02:00
Ran Luo
446cec573f opti icon color in light theme (#1062) 2019-06-04 17:05:56 +02:00
Ran Luo
0cfe79fb07 fix: #1046 (#1048) 2019-05-29 00:04:40 +02:00
Ran Luo
c239e99f1b
Refactor inline image to support paste/drop image (#1028)
* feat: image setting

* opti: inline image

* add imageSelectAction

* remove axios from muya

* update image selector

* finish image selector ui

* add load success style

* delete image by click delete icon

* opti structure of image html

* handle arrow key

* enter to edit

* image preview by press space

* handle backspace when the previous element is image wrapper

* update codes for change another PC

* emable select all in input

* handle arrow and backspace key

* create a new paragraph after the last paragraph if its not empty

* handle backspace when the previous element is image wrapper

* handle enter event in image selector

* rewrite auto show image selector

* modify image folder

* copy file to folder

* select image

* handle paste image

* picgo

* guess image path from clipboard

* drag and drop image to Mark Text

* add github uploader

* remove unused codes

* remove unused codes

* rewrite image path auto complete

* support `path` imageInsertAction

* doc: add image uploader doc

* remove debug codes

* set init value in image uploader page

* fix typo

* remove unused codes

* drag web image to Mark Text

* add save notification

* opti uploading process

* fix did not close image selector bug

* check image content type when drag web link image

* fix: unable to preview relative path image.

* emit change event after paste/drop image

* add url map in image selector

* feat: screenshot and auto insert the screenshot image

* update error handler

* feat: use the native screencapture command line on macOs system

* opti: drop image

* fix: handle enter error when cursor is after a image

* fix: hasOwnProperty error

* remove debug codes

* fix: backspace when the previous ele is image

* fix: CI error and optimize some codes

* use hash of file path to generate the copied filename

* change default imageInsertAction to `path`

* fix: typo

* remove some unused codes and opti get image file name

* fix some bugs and opti codes

* update image edit icon

* romove screen capture on Linux and Windows

* fix: conflict

* fix error that can not insert image after the existed image or before existed image
2019-05-26 23:55:13 +08:00
Ran Luo
5b1cd85d95 fix: #1018 paste error when the lastblock is html block (#1042) 2019-05-25 16:20:07 +02:00
Ran Luo
d06bf6db9d opti: add katex css only when there is math fomular in export html (#1038) 2019-05-23 21:15:59 +02:00
Ran Luo
9eff8248b4 feat: add two event focus and blur of muya (#1039) 2019-05-23 21:09:38 +02:00
Ran Luo
8474a997b0
feat: support prism language alias (#1031) 2019-05-22 21:54:31 +08:00
Ran Luo
a7de21b4a3
opti: put the cursor in bracket after you select link took (#1032) 2019-05-22 21:54:11 +08:00
Felix Häusler
4840c7b646 Update dependencies (#1024) 2019-05-16 09:32:49 +08:00
Ran Luo
8891287bed fix paragraph turn into list bug (#1025)
* fix paragraph turn into list bug

* fix heading style error in list item

* update delete icon
2019-05-13 18:05:39 +02:00
Ran Luo
7dab078a4c fix: toc content vanish bug (#1021) 2019-05-12 17:54:36 +02:00
Felix Häusler
cb3bb6a1ae Update titlebar hover color and remove main listeners (#1020) 2019-05-10 21:26:10 +08:00
Ran Luo
4bd22b6dc5
Mark Text Preference (#1003)
* dynamic change element-ui theme to our themeColor

* add some ui components

* add preference doc

* add json schema file

* update preference.json and schema.json

* reset to old commit

* rename preference file for rebase

* rebase develop

* add setting window

* user electron-store to store preferences

* add themes setting

* add select component

* add markdown pref

* fix: bool and select init value

* add font size setting

* editor pref

* add general preference

* search preference

* update menu after preference changed

* update muya codes

* prevent scale setting window

* fix: titlebar undefined

* update input style

* remove window from windowManager after close setting window

* remove old docs and preference.md

* if a setting window is already created, no need to create another one, just move it to top

* rename openFilesInNewWindow to openFileInNewWindow

* change aidou runtime

* change hideQuickInsertHint by setting page runtime

* change autopair runtime

* change codefont and codefontfamily dynamic

* change default value of autoSave to false

* update bulletListMarker

* fix style error

* add custom titlebar to settings window

* add window shadow for Linux and Windows

* fix Windows build

* fix some typo error

* update doc

* add default menu and setting menu

* fix update menu bug

* fix typo

* remove mac titlebarstyle

* do not need to send titlebarstyle to renderer

* fix typo

* crash Mark Text if no initial preference.json file

* update the path

* add showCustomTitleBar prop

* set empty settings menu on Linux/Windows + workaround
2019-05-09 09:26:28 +08:00
Ran Luo
a74a17118a
fix: #1001 (#1014) 2019-05-09 01:00:26 +08:00
Felix Häusler
980dc8a797 add 'Noto Color Emoji' as default emoji fallback font on Linux (#1009) 2019-05-08 09:26:32 +08:00
Ran Luo
7dee1a4135 update prismjs (#1012)
* update prismjs

* update language.json
2019-05-08 00:13:08 +02:00
Felix Häusler
f45ec9d525 use fallback menu (#1008) 2019-05-07 22:17:58 +08:00
Ken Chen
68be52a87d fix: #438 to sort files in folder (#1005)
* fix: #438 to sort files in folder

* Change to use localeCompare as per review
2019-05-05 17:23:01 +02:00
Ran Luo
230c90c920
container block preview and inline syntax error (#992)
* opti: container block preview

* remove unused codes

* rewrite createBlock method

* remove ag-line classname

* just push codes

* hand enter + shift in paragraph

* update import markdown and export markdown

* update part updateCtrl

* update indent code block

* auto indent when press shift + enter

* update thematic break

* update inline syntax update reg

* update list and task list

* update atx heading and setext heading

* update paragraph

* update block quote

* adjust cursor in heading

* update codes

* paragraph turn into feature check

* check copy paste

* update turn into

* fix: delete last # error

* fix: turn setext heading to atx heading error

* fix: delete thematic break error

* paste and copy

* workarond turndown to support soft line break

* fix: unable create table

* modify export markdown

* modify test markdown

* fix: cursor error when update blockquote

* readd cursor check when dispatch changes

* fix: inline math create a lot extra char

* add code cache clear after each render

* fallback to prismjs2
2019-05-04 23:41:46 +08:00
Felix Häusler
77ff23c2c8 refactor main source code (#1006)
* refactor main source code

* fix invalid file cache entries during startup
2019-05-04 22:14:45 +08:00
Ran Luo
b7d51e0d6c Opti: emoji picker style and fix missing emoji error (#985)
* opti: emoji picker style

* fix: emoji render error

* update emoji regexp

* update emoji.json to latest version
2019-05-03 00:00:23 +02:00
Felix Häusler
620df2ee69
add tab scrolling and drag&drop (#953)
* add tab scrolling and drag&drop

* fix tab maximal width without side bar

* use dragula instead of vue-draggable

* Update changelog

* fix issues with maximal side bar width

If the side bar is resized more than 50vw then issues occur because the
commited width is not limited to 50vw or if the window is resized.

* reordered tabs after dropping and some improvements
2019-04-28 20:02:05 +02:00
Felix Häusler
3b9c16779d fix: #878 select existing tab (#986) 2019-04-29 01:23:42 +08:00
Felix Häusler
1ab1e853f4 fix source-code background color (#987) 2019-04-29 01:20:50 +08:00
Felix Häusler
21d09706a7
fix: shortcuts and menus without id not longer work (#984) 2019-04-27 19:45:46 +02:00
Ran Luo
a6d97abab7 fix: #980 shortcut error (#981) 2019-04-27 18:14:21 +02:00
Ran Luo
e6676b5f64
fix: link style error (#979) 2019-04-28 00:13:40 +08:00
Ran Luo
d4e051ed5e arrow down will not show the # marker of header (#978)
* arrow down will not show the # marker of header

* add comments and update changelog
2019-04-27 18:10:35 +02:00
Ran Luo
9c2f6cb319 fix: #974 inline math style optimization (#977)
* fix: #974

* update changelog
2019-04-27 18:03:40 +02:00
Ran Luo
f3b534275a feat: jump cursor to the end to format (#976)
* feat: jump cursor to the end to format

* update changelog
2019-04-27 17:53:58 +02:00
Ran Luo
379290e93e update prismjs2 to prismjs@1.16.0 (#975)
* update prismjs2 to prismjs@1.16.0

* upgrade other deps
2019-04-27 17:22:49 +02:00