Commit Graph

1085 Commits

Author SHA1 Message Date
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
Felix Häusler
6479928168
Add markdown document icon for macOS and Windows (#915) 2019-04-16 20:06:57 +02:00
Ran Luo
0bc96c2436
fix: #926 summary element can not be click (#948) 2019-04-15 23:25:34 +08:00
Ran Luo
d9f64bab58 fix: #921 reference link render error (#947) 2019-04-15 16:54:13 +02:00
Ran Luo
991441190d Fix remove content bug (#937)
* add dotenv to set environment variable

* fix: #934

* fix: #938

* update codes
2019-04-15 16:39:28 +02:00
Felix Häusler
f5995a24dc
fix continuous integration (#936) 2019-04-13 18:27:32 +02:00
Ran Luo
444a8d73f7 update front matter icon (#933) 2019-04-13 15:04:35 +02:00
Ran Luo
09aa23ebeb Update Spec from 0.28 to 0.28 in comments and menus (#932) 2019-04-13 15:01:05 +02:00
Ran Luo
d1aefbde47 update contribution guide (#931) 2019-04-13 15:00:19 +02:00
Alexander Misel
99848431bd Fix typo - recommend (#935) 2019-04-13 11:40:47 +08:00
Felix Häusler
5ab688a52f
release v0.14.0 (#930) 2019-04-12 19:51:30 +02:00
Ran Luo
8b04b4c34a
Diagram (#914)
* add theme support of diagram

* add init mermaidTheme and vegaTheme when init muya

* export diagram

* update changelog

* add delete icon

* replace table toolbar icon to png

* replace icons in fromt menu and quick insert

* update format icons to png

* add theme support of diagram

* add init mermaidTheme and vegaTheme when init muya

* export diagram

* update changelog

* add delete icon

* replace table toolbar icon to png

* replace icons in fromt menu and quick insert

* update format icons to png

* update front icon hover color

* adjust format box icon size

* prevent some warning and rerender after change from source code

* remove debug code and replace image icon
2019-04-13 00:40:23 +08:00
Ran Luo
47cb2bbe40 feat: support create indent code block (#920)
* feat: support create indent code block

* update changelog
2019-04-12 18:02:28 +02:00
Ran Luo
52237bfe74 fix: code block backspace error and task list error (#919)
* fix: code block backspace error

* fix: #738 remove task list item error

* debug codes

* remove cross-env

* fix comment issue
2019-04-12 17:57:54 +02:00