Commit Graph

1548 Commits

Author SHA1 Message Date
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
630bc3f498
Update FUNDING.yml 2019-05-24 12:53:13 +08:00
Ran Luo
817e0721f0
Create FUNDING.yml (#1040) 2019-05-24 12:51:35 +08: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
Ran Luo
de841c8fdb Update deps (#1011)
* update chokidar to 3.0.0

* update electron to 5.0.1
2019-05-08 00:10:04 +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
54776ba45d
Updated vega library (#995) 2019-05-02 15:30:47 +02:00
Ran Luo
fc6c8b45f5
update electron to 5.0.0 (#970)
* update electron to 5.0.0

* update yarn.lock
2019-05-02 09:00:23 +08:00
Felix Häusler
df9d5c8459 Remove git dependency and update documentation (#1000)
* Remove git dependency and update documentation

* Update documentation
2019-05-02 08:59:42 +08:00
Andres
e923286cfb fix typo in readme (#999) 2019-05-02 00:09:50 +02:00
Felix Häusler
040a7bb221
fix karma-electron nodeIntegration value due electron 5 changes (#991) 2019-05-01 23:41:27 +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
bfcad27178 fix typo in flathub metadata (#989) 2019-04-29 01:20:07 +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
Ran Luo
372fe02f23 fix: #870 list parse error (#964)
* fix: #870 list parse error

* remove semiclon

* add more comments

* rename isTaskListItem to isTaskList
2019-04-27 17:16:38 +02:00
Felix Häusler
c20cdc6213 fix dark theme colors (#973) 2019-04-27 07:52:39 +08:00
Ran Luo
d71647fc9a opti: style in editor (#969)
* opti: style in editor

* change float box shadow

* add border to float box

* little code opti

* opti image style

* update style

* change code block bg color

* fix: update style

* opti codes
2019-04-26 22:33:29 +02:00
Ran Luo
a900b7f2ef
optimization of cursor, and fix some cursor related issues (#963)
* optimization of cursor, and fix some cursor related issues

* remove duplicate codes
2019-04-23 23:45:43 +08:00
Ran Luo
c4664546bd
fix: whole selection can not be canceled (#962)
* fix: whole selection can not be canceled

* add null check in clickCtrl
2019-04-23 23:41:55 +08:00
Ran Luo
413b3f92db Add a result table (#965)
* Add a result table

* update comments

* update readme
2019-04-23 17:18:04 +02:00
Ran Luo
57cd04c50f
fix: commonmark example 475 and related failed examples (#957)
* fix: commonmark example 475 failed

* fix some strong and em commonmark examples failed test

* remove some debug code

* fix: cm example 353

* fix: cm example 387

* remove ununsed codes

* use \s to replace unicode whitespace array

* fix 3 atx heading examples

* fix setext heading failed examples and image alt examples

* fix: example 520 and 521
2019-04-19 07:51:33 +08:00
Ran Luo
f4f5ba3e00 add commonmark spec and gfm spec test and compare with markedjs (#943)
* add commonmark spec and gfm spec test and compare with markedjs

* ignore .env

* fix: load lang multiple times

* add eslint disable

* add `math`, `emoji`, `frontMatter` options to marked

* fix: commonmark example 223

* fix: import markdown error

* fix: commonmark example 7

* fix: commonmark example 40

* update test result

* update changelog

* update loose test regexp

* remove unused comments
2019-04-17 15:29:00 +02:00
Ran Luo
ef9fe7566a feat: add underline format (#946)
* feat: add underline format

* update doc

* add support superscript and subscript in format menu
2019-04-16 20:15:02 +02:00