Commit Graph

110 Commits

Author SHA1 Message Date
Kiyoka Nishiyama
24e0f96ef3 Applied review findings
Unnecessary return statements were removed.
Renamed isLocalImage to imageIsLocal.
Changed getImageInfo function to return the absolute path of the image.
Removed file:// scheme from the path given to shell.openPath().
2022-05-14 11:12:57 +00:00
Kiyoka Nishiyama
4f874e299b Merge branch 'develop' into fix-issue-2321 2022-05-08 09:53:01 +00:00
Felix Häusler
2bb405a03e
Replace node-spellchecker with Electron builtin spell checker (#2895)
* Replace node-spellchecker with Electron builtin spellchecker

* Fix word match unit tests

* Fix issue to enable spell checker if it was disabled at startup

* Fix spell checker was always disabled on macOS

* Code cleanup

* Fix circular dependency in Muya

Fix circular dependency between config/index.js and utils/index.js in Muya.
2022-03-27 11:27:39 +08:00
Kiyoka Nishiyama
ed0ee346ed fix: #2321 Open local image
The muya library has been modified to be pure JavaScript.
2022-02-24 12:53:24 +00:00
Felix Häusler
d95506751b
Ignore watcher event if mtime doesn't changed (#3057) 2022-02-22 21:44:56 +01:00
Felix Häusler
6b3ead958e
Fix issues with non-US keyboards and add key binding settings page (#2930)
Replaced the key manager by atom-keymap to support non-US keyboards and
dead key translation on macOS and Windows. In addition, a GUI for key
bindings was added.
2022-01-29 15:14:19 +01:00
Felix Häusler
b442aafa5a
Fix invalid relative image path (#2935) 2022-01-27 22:02:21 +01:00
Kiyoka Nishiyama
92932a1869
fix: #703 invalidate image cache on demand (#2875) 2022-01-24 00:20:40 +01:00
Luo Tao
ddd1879c61
feat: set image folder to .assets, create folder without filename extension. (#2905) 2022-01-21 21:29:48 +08:00
Ran Luo
565f475e00
Feat/use picgo to upload image (#2890) 2022-01-16 18:28:21 +01:00
Felix Häusler
b0299387a5
Add filename variable to relative image action (#2879) 2022-01-13 22:20:18 +01:00
bolshoytoster
881e0c44e6
Added support for image path variables (#2809) (#2826) 2022-01-12 21:14:50 +01:00
Felix Häusler
3ecb8b6fd2
Fix async IO function in renderer (#2863) 2022-01-12 21:16:51 +08:00
Felix Häusler
8c031c6798
Fix editor overflow (#2850) 2022-01-08 17:28:23 +01:00
Felix Häusler
f89ec51938
fix animated scrolling (#2780) 2021-12-25 21:45:42 +08: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
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
19eab7d1fc
Add option to disable HTML rendering (#2414) 2020-12-17 23:19:22 +01:00
Felix Häusler
44e15a34b7
Update dependencies (#2199) 2020-06-08 14:03:30 +02:00
Felix Häusler
5bb7856cb4
Add GitLab math block support (#2119) 2020-06-04 01:31:21 +02: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
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
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
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
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
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
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
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
jocs
f3b15f3d7c Optimization of log.error mesg 2019-11-04 00:52:55 +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
0ced076328
Merge pull request #1576 from marktext/unsplash-ux
Improve image picker UX
2019-11-02 23:03:14 +08:00
Felix Häusler
60bb2a0d5c
Improve image picker UX 2019-11-02 12:08:47 +01:00
罗冉
a028a7c2bb feat: add code block line numbers 2019-11-01 17:24:18 +08:00
jocs
baa18252a8 fix:# 628 2019-10-30 21:22:24 +08:00
罗冉
318bfc6aa2 feat: add footnote setting option 2019-10-29 18:36:16 +08:00
罗冉
ec91b31d49 Create footnote from identifier and backlink 2019-10-27 23:52:23 +08:00
Ran Luo
c6708e9d9a
fix: #1540 (#1542)
* fix: #1540

* adjust style
2019-10-27 01:04:18 +08: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
f1f048f53d
Fix can not fetch unsplash pictures (#1518) 2019-10-24 08:37:19 +08: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
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