Commit Graph

1209 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Felix Häusler
d7eccc005b fix: warning condition (#927) 2019-04-12 23:37:57 +08:00
Ran Luo
048340323d
fix list indent by tab (#908) 2019-04-12 22:51:31 +08:00
Ran Luo
ad5ddbf994
fix: GFM example 558 (#917) 2019-04-12 22:46:45 +08:00
Felix Häusler
02841ffdf9 fix: subsequent list paragraphs (#916) 2019-04-12 08:08:43 +08:00
Felix Häusler
8951879b52 fix: markdown image url (#911) 2019-04-11 21:58:14 +08:00
Ran Luo
ef59a74380
feat: support copy rich text (#904)
* feat: support copy rich text

* update changelog
2019-04-11 09:28:04 +08:00
Ran Luo
6203eb2759 Fix unable duplicate html and deprecate the html delete icon button (#910)
* deprecated delete icon button above the html block, because we already have front menu

* remove some unused codes

* fix: unable copy html block
2019-04-10 23:03:47 +02:00
Felix Häusler
1c4ec7cae4 add list indentation settings (#900) 2019-04-10 22:43:21 +08:00
Felix Häusler
2e50b62d99 Set dark theme when first saving (#901) 2019-04-10 22:42:15 +08:00
Felix Häusler
960b065a88 ignore key events if cursor is not set (#906) 2019-04-10 22:41:40 +08:00
Ran Luo
82d4c74f62 fix: #893 #892 #897 (#896)
* fix: #893 #892

* update change log

* update checkNotSameTokens

* fix error when delete at the end of inline math or ruby tag
2019-04-09 23:14:52 +02:00
Ran Luo
c0f333d9a2 fix: code highlight error when open file contains code block (#891)
* fix: code highlight error when open file contains code block

* some typo error

* some style change
2019-04-09 23:11:45 +02:00
罗冉
749af381f1 Merge branch 'master' of github.com:marktext/marktext 2019-04-09 11:09:58 +08:00
罗冉
e3582297c2 update offical website address 2019-04-09 11:09:43 +08:00
Felix Häusler
c35395a8f8 fix: vscode debugging configuration (#889) 2019-04-09 01:19:03 +08:00
Ran Luo
4e918503f4 feat: add front menu (#875)
* feat: add front menu

* update changelog

* feat: add short cut of paragraph edit

* fix location bug of submenu

* update checkbox style in editor

* update selected background color

* update KEYBINDINGS.md

* Bullet to ordered list issue:

* emit change event after control paragraph

* fix: marked parse error

* disable table, front-matter and horizontal line in paragraph turn into, and fixed paragraph turn into html and math

* fix unwanted space before text paragraph when heading turn into text paragraph

* fix error when turn heading to paragraph

* put front menu on the left on front icon

* update readme

* if the selection span in two lnes, disable paragraph turn into heading
2019-04-07 16:16:49 +02:00
Ran Luo
962fdf356f
fix: Emoji offset in heading (#883) 2019-04-06 16:25:42 +08:00
Ran Luo
26c823d11e fix unecessary cache token (#884) 2019-04-06 09:45:41 +02:00
Felix Häusler
d12f4fab19 fix: source code mode tab switching (#881) 2019-04-06 14:50:40 +08:00
Felix Häusler
b0ae437ba4 fix: paragraphCtrl cursor may be null (#855) 2019-04-06 06:52:48 +08:00
Felix Häusler
30a1423d02 fix: emoji picker icon color (#879) 2019-04-06 06:50:29 +08:00
Ran Luo
60ab6bdcf0
remove list style color (#871)
* remove list style color

* remove unused codes
2019-04-06 01:55:55 +08:00
Felix Häusler
916c96c5df Update markedjs (#873) 2019-04-06 00:01:40 +08:00
Ran Luo
fd11862188
Layout editor and cursor disappear bug (#869)
* some style in editor changed

* opti: the display of header

* fix Cursor disappear when use arrow down/up switch between headers #867

* add a add_close svg icon
2019-04-06 00:00:09 +08:00
Ran Luo
02dbb8affa fix search error in nest block (#872) 2019-04-05 17:20:40 +02:00
Ran Luo
41def3782a
fix image not loaded in inline html (#863) 2019-04-04 23:22:22 +08:00
Ran Luo
a2786b13d2
fix: #857 #854 (#864) 2019-04-04 23:22:04 +08:00
Ran Luo
5d748eb196 support ruby and better raw html display (#849)
* support ruby and better raw html display

* finish ruby render

* add kbd style

* if content is empty string, do not hide tag

* update changelog

* add auto complement to inline html

* opti slit words

* opti tool bar style

* support open inline a tag if it is a external link

* fix: auto complete

* add attribute white list

* add comment

* delete some commented codes
2019-04-03 20:31:34 +02:00
Felix Häusler
f226f87dcb improve task list style (#853) 2019-04-04 01:18:04 +08:00
Felix Häusler
aa59e8a0ca fix: input style in side bar (#852) 2019-04-04 00:34:51 +08:00
Felix Häusler
e6e97ba529 Improve watcher RegEx (#846) 2019-04-03 10:52:49 +08:00
Felix Häusler
c5852252aa fix: Linux rename syscall when using side bar (#845) 2019-04-03 10:36:27 +08:00
Ran Luo
5f191681b7 fix list parse error in block quote (#840)
* fix list parse error in block quote

* remove debug codes

* add test unit of blockquote

* remove failed test unit
2019-04-02 12:06:11 +02:00
Felix Häusler
847cb23a2d fix: blockquote list item font color (#843) 2019-04-01 08:40:41 +08:00
Andrew Rabert
3f381c4b89 Fix grammar (#844) 2019-04-01 08:38:44 +08:00
Ran Luo
739d31aa66 fix #625 (#799)
* style opti

* fix #625

* update changelog

* fix error when selection in not in edit area

* also fix double click front icon and error happen

* fix error when click front icons and toolbars of table

* rebase master

* update some codes

* null check in all selection.getCursorRange method

* add maskColor variable

* update roadmap, remove note features
2019-03-31 13:06:27 +02:00
Felix Häusler
c1d02d13d1
Titlebar workaround for #339 (#818)
* Titlebar workaround for #339

* Limit tab width to 280px
2019-03-31 13:02:55 +02:00
Felix Häusler
004879b49a Modified themes and added dark and one dark theme (#826)
* Modified themes and added dark and one dark theme

* fix: print service

* Update documentation
2019-03-31 12:56:03 +08:00
Ran Luo
70d49c30e1
fix recognize -foo as list item (#832)
* style opti

* fix recognize `-foo` as list item

* update changelog

* update block.item regexp
2019-03-31 01:24:01 +08:00
Felix Häusler
be3ea4b0ce fix: watch rename syscall on Linux (#816) 2019-03-31 01:23:19 +08:00
Felix Häusler
b4784e83c5 Update license and add third-party licenses (#835) 2019-03-30 22:15:51 +08:00
Ran Luo
1448ded9f9 Show a cursor pointer when mouse in on link or img (#834)
* style opti

* fix #825 export wrong pdf

* show cursor pointer when mouse is on link or img and CmdOrCtrl is pressed

* revert the first commit
2019-03-29 22:20:06 +01:00
Ran Luo
4c3da0c298 little optimization of copy paste (#833) 2019-03-29 22:15:31 +01:00
Ran Luo
73a4abd7bb
fix #707 (#829)
* style opti

* fix #707

* update changelog

* fix: #831

* add checkSameMarkerOrDelimiter

* update selection color

* update some codes

* add a todo comment
2019-03-29 09:01:16 +08:00
Ran Luo
f00da15213 fix: insert table into table, html, code, math block will cau… (#812)
* fix: insert table into `table`, `html`, `code`, `math` block will cause wrong markdown syntax

* fix table style color

* add comments
2019-03-28 17:48:43 +01:00
Ran Luo
a5b80d9794
Fix image picker icon path (#824)
* fix: image picker icon is not shown after package

* update table,folder and upload icon

* fix: filter bug in quick insert

* fix: image path

* add floatshadow color
2019-03-28 21:53:24 +08:00
Felix Häusler
a5ba4a375f workaround: disable printing due Electron issue(s) (#828) 2019-03-28 20:35:47 +08:00
Felix Häusler
5732b8f162 fix: hamburger menu offset (#827) 2019-03-28 20:30:50 +08:00
Ran Luo
3fa4b03b71
fix table context menu (#820) 2019-03-28 20:28:37 +08:00
Ran Luo
8bc429a71b no need to auto pair when the pre char is backlash (#821) 2019-03-28 13:18:42 +01:00
Ran Luo
be660320e7
fix: #769 (#787)
* style opti

* fix: #769

* remove debug code

* rewrite set inline emoji.

* fix padding error in emoji

* remove padding of emoji picker
2019-03-27 19:59:21 +08:00
Felix Häusler
270d33f6c8 fix: update list item lexer and parser (#803)
* fix: CommonMark 264

* fix: muya list behavior
2019-03-27 19:51:46 +08:00
Ran Luo
a41f751f2f update or notice file changed on disk (#796)
* update or notice file changed on disk

* update changelog

* fix some typo and optimize some codes
2019-03-26 13:40:51 +01:00
Marco Westerhof
499a3cd36b fix: small typo (#811) 2019-03-26 17:45:21 +08:00
Felix Häusler
ec5993a3a1 Hide renderer errors in official binaries and show one notification only (#808) 2019-03-26 08:53:48 +08:00
Felix Häusler
ed9757fe36
Hide control buttions in fullscreen (#809) 2019-03-25 16:52:41 +01:00
Ran Luo
13d8e7830e
fix: #586 #740 (#798)
* fix: #586

* fix: #740

* seperate math syntax from to GFM rules

* update style

* little style change

* update image and iamge fail icon
2019-03-25 23:14:32 +08:00
Felix Häusler
f115b7ea41 Add symbolic link support (#802)
* Allow symbolic links

* Update changelog
2019-03-25 23:11:57 +08:00
Felix Häusler
94066706f5 fix: relative images are not loaded after closing a tab (#810) 2019-03-25 22:57:18 +08:00
Ran Luo
c6def5a726 fix: render error when render front icon (#806) 2019-03-25 15:54:35 +01:00
Felix Häusler
ef2b12603b fix: set cursor in source code mode (#805) 2019-03-25 22:08:29 +08:00
Ran Luo
2389332e42
update: electron and dayjs (#801)
* update: electron and dayjs

* update useage of dayjs

* rm yarn-error.log
2019-03-25 12:03:45 +08:00
Ran Luo
347a1dfe45 feat: front icon prepare for click menu (#779)
* feat: front icon prepare for click menu

* fix: not cursor pointer on front icon button

* hide arrow and pointer cursor
2019-03-25 00:28:49 +01:00
Ran Luo
a395982faa fix: #432 (#800)
* fix: #432

* update change log

* update changelog
2019-03-25 00:05:04 +01:00
Felix Häusler
741bc50ea3 Update markedjs (#770)
* Update markedjs

* Update changelog
2019-03-24 21:04:26 +08:00
Felix Häusler
de29043086 fix: tab switch exception due invalid cursor (#792) 2019-03-24 20:58:46 +08:00
Ran Luo
c0c8ea4b15 feat: open external link and local markdown file (#790)
* feat: open external link and local markdown file

* image view

* browse image by CmdOrCtrl + click

* use esc to close image viewer

* change image viewer z-index to prevent math render show on top of it

* support windows and linux
2019-03-24 13:20:43 +01:00
Ran Luo
e1cfec6e3e
opti: rewrite TOC and remove hard code theme (#778)
* opti: prevent the duplicated header text error

* scroll error in toc

* delay the change event when init muya, so that the change event listener can handle change event.

* opti: style

* almost finished need last check

* style in table

* clear up some unused codes

* clear up theme hard code

* add no search data picture and new Folder new File

* move search and replace to top of editor

* add: no data image when there is no TOC

* update structure

* little bug fix

* update styles

* update un_draw icons

* update style of editor

* add animation when make open folder collapse.

* remove theme props in editor component, deprecated lightColor and darkColor

* add Ulysses Light

* theme: graphite

* update Ulysses blockquote

* update emoji style

* update titleBar height

* change theme color

* Support macOs dark mode

* update style of tooltip in editor

* update styles

* fix: TOC auto expand all

* patch added
2019-03-24 05:09:00 +08:00
Ran Luo
07d0bbb249
fix: #679 (#788) 2019-03-24 05:06:39 +08:00
Ran Luo
7936e3f4ba
fix #636 selection can not be canceled (#786) 2019-03-24 05:01:35 +08:00
Ran Luo
54004025e0 fix: #782 (#789) 2019-03-23 19:55:14 +01:00
Ran Luo
5f2c889e05 fix: #754 (#759)
* fix: #754

* update regexp
2019-03-21 21:26:32 +01:00
Ran Luo
8030956579
update all muya icons (#775)
* update icons

* add format math icon

* remove opacity of delete icon
2019-03-19 15:39:36 +08:00
Ran Luo
93055587b2
fix #760 (#774) 2019-03-19 15:21:04 +08:00
Ran Luo
70cea33d78
update: icon path (#771)
* update: icon path

* update icon path
2019-03-19 15:19:16 +08:00
Ran Luo
c332e71f69
fix: #705 (#714)
* fix: #705

* remove debug codes

* fix nested list and multiple paragraphs
2019-03-17 17:51:20 +08:00
Felix Häusler
ebe929619a fix: open files in current window (#762)
* fix: open files in current window

* fix: open drag&drag also in new tab if specified
2019-03-17 17:49:34 +08:00
Felix Häusler
7c5a6143b9 fix: broken relative image sources when exporting (#761) 2019-03-17 17:44:26 +08:00
Felix Häusler
eff54dcaa1 fix: sidebar tree view (#764) 2019-03-17 17:39:00 +08:00
Felix Häusler
c47795e4ba fix: XSS and Electron vulnerability (#765)
* fix(security): XSS when exporting

* fix(security): Electron security vulnerability
2019-03-14 02:06:57 +08:00
Ran Luo
fd3daf4e51
fix: #752 (#758)
* fix: #752

* fix typo
2019-03-13 00:12:52 +08:00
Ran Luo
c1351dab7d narrow the width of edit area (#750)
* narrow the width of edit area

* change source edit area width
2019-03-12 16:56:02 +01:00
Ran Luo
1fd335853f update quick insert icons (#746) 2019-03-11 18:50:08 +01:00
Marco Westerhof
6d608d16c3 fix small typo (#745) 2019-03-11 21:45:28 +08:00
Ran Luo
0a3efbf88e fix: 622 text selection (#743) 2019-03-09 19:29:56 +01:00
Ran Luo
6639bb9ba8 fix #659 allow width and height attributes in img tag (#742)
* fix #659

* valid width and height attributes of img tag

* remove debug codes
2019-03-09 19:11:42 +01:00
Ran Luo
dec7502ebe Feat setextheading (#741)
* suport sutext heading input

* fix: #708

* fix: unrecognize horizontal line syntax
2019-03-09 14:13:42 +01:00
Ran Luo
2c87af7f2f update pageage.json, add maintainer (#733)
* update pageage.json, add maintainer

* update dep

* feat: opti quick insert

* update quick insert icon

* update pageage.json, add maintainer

* update dep

* feat: opti quick insert

* update quick insert icon

* add windows support

* fix #576
2019-03-09 12:51:55 +01:00
Felix Häusler
8f73940e2e Fix tab change in source code mode (#737) 2019-03-08 21:30:02 +08:00
Ran Luo
9d5f3ae496 fix #710 automatically wrap code block lines when printing (#725) 2019-03-08 12:55:03 +01:00
Felix Häusler
e668aeb350 Always add files to recently used document list (#736) 2019-03-08 02:32:52 +08:00
木士羽
519f82451a Add support for recently used directory (#718) 2019-03-07 17:38:32 +01:00
Felix Häusler
cbd90bfeb4 User-defined open files (#735) 2019-03-07 22:59:40 +08:00
Felix Häusler
44c537a62c Initialize editor when loading a folder and show default tab (#729) 2019-03-07 22:35:16 +08:00
Marco Westerhof
b4c23d1f02 fix small typo (#734) 2019-03-07 22:20:13 +08:00
Felix Häusler
a803cf4ab5 Fix titlebar null property during initialization (#726) 2019-03-07 08:28:44 +08:00
Ran Luo
1c42555a10 fix: #671 allow pasting multiline text into a heading (#719) 2019-03-06 19:33:20 +01:00
Felix Häusler
9af9111d31 Fix Windows path separator in tree view (#728) 2019-03-06 22:44:21 +08:00
Felix Häusler
e94131b342 Fix recommended filename/title (#727) 2019-03-06 10:34:23 +08:00
Ran Luo
4880af4dad
Fix #684 (#723)
* fix: auto focus language input field when create code block by quick insert or menu

* fix: active language input field by arrow up and down
2019-03-05 23:34:14 +08:00
Ran Luo
a758a2e9a2 opti: better auto pair (#722)
* opti: better auto pair

* fix error in deleteContentForward
2019-03-05 16:32:21 +01:00
Ran Luo
60275d89b3 fix: #666 show tooltip on document info hover (#717)
* fix: #666
2019-03-04 22:21:22 +01:00
Felix Häusler
9a16361c1b Partial rebase from markedjs (#701)
* markedjs#1239, markedjs#1262: Escapedpipes

* markedjs#1303: add hard line break when backslash at EOL

* markedjs#1135: update the list of markdown escapes, per commonmark

* markedjs#1224: fix unsafe heading regex

* markedjs#1023: new blockquote rule: match any paragraph-like content up to next line

* markedjs#1245: GFM table compliance

* markedjs#1013, markedjs#1181 fix backticks in inline code and em

* markedjs#1351: fix emphasis closing by single _

* markedjs#1034: make autolinks compliant

* markedjs#1387: fix language identifier parsing

* Restore table escape characters
2019-03-04 20:26:21 +08:00
Felix Häusler
359387a390 User-defined titlebar settings (#721) 2019-03-04 10:57:31 +08:00
Ran Luo
62633c498e fix: #629 (#720) 2019-03-03 21:05:51 +01:00
Ran Luo
240d64aa55 fix: #706 combine lists of different type (#716) 2019-03-03 21:05:39 +01:00
Ran Luo
4278362f82 fix: #673 disable autocompletion in inline math (#715) 2019-03-03 21:04:37 +01:00
Ran Luo
39e0e683a9 fix: #672 style error in list item (#713) 2019-03-02 15:57:01 +01:00
Ran Luo
437e0b0951 fix: Unable to insert text into a table cell (#702)
fix#670
2019-03-02 11:44:14 +01:00
Felix Häusler
4647a53111 Add compile time version information (#695) 2019-02-28 23:03:55 +08:00
Felix Häusler
7aa723b9e7 Add XSS e2e test and fix error handler issue (#700) 2019-02-27 22:16:47 +08:00
N-McA
5157b6a462 Add Inline Math to formatting menus (#649)
* remove the unused variable CLASS_OR_ID from domManipulate.js

* add inline math to the formatting menus, and as CtrlorCmd-M

* add color to the math icon when format is applied

* skip the delimiting characters for math and code and del

* skip the delimiting characters for math and code and del

* Update zh_cn.md (#653)

* Update zh_cn.md

* Update zh_cn.md

* Add Markdown MimeType (#648)

* Add Markdown MimeType

XDG Desktop components will identify this program as a Markdown editor

* Add mimetype to package.json

* Removing old Mime

* Explicitly define security guidelines (#652)

* Adjust inline math font (#657)

* add inline math to the formatting menus, and as CtrlorCmd-M

* add color to the math icon when format is applied

* skip the delimiting characters for math and code and del

* skip the delimiting characters for math and code and del

* remove clash with macos minimise by ensuring ctrl-m for inline math

* combine the two conditionals

* fix trailing spaces
2019-02-27 19:19:29 +08:00
Felix Häusler
a55fc94db7 Fix undefined language id when exporting a code block (#591) (#677) 2019-02-08 00:32:44 +08:00
Felix Häusler
47946739eb backport: Spellchecker minor bug fixes (#651)
* Experimental spellchecker backport

* Normalize path
2019-02-01 22:32:08 +08:00
Felix Häusler
543ec07e72 Adjust inline math font (#657) 2019-01-25 13:57:24 +08:00
Felix Häusler
e9a8b6e281 Explicitly define security guidelines (#652) 2019-01-24 23:23:42 +08:00
jocs
c169a7704e update: delete unused codes 2019-01-15 10:25:59 +08:00
jocs
d5eb560435 delete some unused codes 2019-01-14 21:47:03 +08:00
Ran Luo
81af43be93
feat: add hide quick insert hint option (#638) 2019-01-07 22:25:18 +08:00
Felix Häusler
790448ae5f Allow custom fonts and improve side bar (#626) 2018-12-25 18:52:51 +08:00
Felix Häusler
a2a0363541 Add production source maps (#610)
* Add production source maps

* Increase mocha timeout
2018-12-20 17:09:16 +08:00
Felix Häusler
9e32c4a0ca fix #564 move cursor in next table cell at index 0 (#611)
* fix #564 move cursor in next table cell at index 0

* WORKAROUND: undefined macOS application title on startup
2018-12-18 21:47:44 +08:00
Ran Luo
dbe8d28a2f
update: remove some unused code (#607) 2018-12-17 10:44:10 +08:00
Felix Häusler
2ce05829d7 Fix tests and improve CI (#590)
* Fix tests and improve CI

* Add xvfb to Linux - still problems with Mocha e2e tests

* Disable Webpack Bundle Analyzer for testing

* Use preinstalled yarn application on AppVeyor

* Fix build failure with latest vue version

* Remove "markdown-toc"

* Fix application title unit test

* Hide electron window during unit tests

* Add basic muya unit tests

* Dirty markdown-toc replacement

* Update dependencies

* Update eslint packages and configuration
2018-12-17 10:29:37 +08:00
Felix Häusler
fa394be978 Fix build failure with latest vue version (#605) 2018-12-13 21:58:52 +08:00
Felix Häusler
638f65e4ea Respect existing image title if no source is specified (#599) 2018-12-10 00:27:02 +08:00
Felix Häusler
a77b9ab6f1 Allow pasting text into the code block language text-box (#598) 2018-12-09 11:25:00 +08:00
Felix Häusler
7ebb04d48e Prevent enter key as language identifier (#597) 2018-12-09 11:01:33 +08:00
Felix Häusler
6ec0a215ac Fix multiple print service bugs (#594)
* Fix print service

* Fix printing

* Optimize CSS style and remove deprecated code
2018-12-06 21:01:33 +08:00
Felix Häusler
a556f59b21 Remove PDF background color (#589) 2018-12-04 10:19:55 +08:00
Felix Häusler
1b270b960e Fix dark preview box background color (#588) 2018-12-04 10:12:11 +08:00
Felix Häusler
02fb2f0b4f Add git commit to error handler (#579) 2018-11-30 22:07:40 +08:00
Felix Häusler
6a96a46fdb Add exception handler (#565) 2018-11-27 22:59:13 +08:00
jocs
6293d40814 fix: #572 and update some deps 2018-11-25 10:29:29 +08:00
jocs
00242115a9 fix: #570 #571 2018-11-22 21:03:09 +08:00
jocs
dd0cfb15da style: optimization 2018-11-20 21:41:05 +08:00
jocs
73319d978e opti: use element-resize-detector to instead of ResizeObserver 2018-11-20 17:52:00 +08:00
Ran Luo
dc96c13060
fix: #563 (#567)
* fix: #563

* change isMacOs TO isOsx
2018-11-20 10:34:00 +08:00
Felix Häusler
387d42822d Fix virtual key mapping on non-QWERTY layouts (#561)
* Fix wrong virtual key mapping

* Update npm dependencies
2018-11-16 08:59:47 +08:00
jocs
8a7e65599d fix: compose bug 2018-11-15 14:40:12 +08:00
jocs
9a9e00b813 fix: #541 2018-11-15 08:58:58 +08:00
jocs
3d1fbeb879 fix: #558 can not input multiple empty lines 2018-11-13 22:45:44 +08:00
jocs
092857073d fix: unecessary inputHandler 2018-11-13 21:15:40 +08:00
jocs
eb9b3b8437 fix: copy paste bug in list 2018-11-13 21:08:15 +08:00
Felix Häusler
d0c4763e7e Fix sidebar and tabbar won't toggle (#557) 2018-11-12 21:09:34 +08:00
Felix Häusler
4789c7b119 Fix dark theme format box style (#556) 2018-11-12 21:07:36 +08:00
Felix Häusler
7623377432 Improve sidebar and tab design (#555) 2018-11-12 21:06:36 +08:00
jocs
275cd12800 opti: hide vega-embed 2018-11-12 11:19:47 +08:00
jocs
8af866fcd8 fix: the image path float box icon disappeared in build version 2018-11-11 21:40:55 +08:00
jocs
0e90d8a929 fix: hide image float box if needed 2018-11-11 12:42:57 +08:00
jocs
25f141f93b fix: image path float box show and hide 2018-11-11 11:58:55 +08:00
jocs
5c5a4fa9ae fix: paste need to update paragraph 2018-11-10 22:52:15 +08:00
jocs
8412412f2a fix: nest list error 2018-11-10 19:45:30 +08:00
jocs
8dcd4d118d fix: #509 2018-11-10 11:53:07 +08:00
jocs
c004b7300d fix: keyup need check for render 2018-11-09 19:18:05 +08:00
jocs
968b538acf opti: make UI components to plugins, disable spellcheck 2018-11-08 22:44:45 +08:00
Felix Häusler
72ef20edd8 Don't show save dialog for an empty/not changed document (#548)
* Don't show save dialog for an empty document

* Fix blank document was always encoded as LF
2018-11-07 21:50:10 +08:00
jocs
2e133e21e0 fix: #546 2018-11-07 20:27:53 +08:00
Felix Häusler
79ee58ef7e Update changelog (#547) 2018-11-07 10:38:49 +08:00
Felix Häusler
5339ef6bb4 Fix keybinding issues (#543)
* Fix keybinding issues

* Check for duplicate accelerators

* Allow to unset menu accelerators

* Disable AppVeyor to reconfigure later

AppVeyor is currently not in use. We have to enable it and configure.

* Update documentation

* Update documentation [ci skip]
2018-11-07 00:16:50 +08:00
jocs
7b5fb770d0 fix: #544 2018-11-05 23:56:34 +08:00
jocs
adc7b3b5e5 delete debug codes 2018-11-05 23:14:37 +08:00
jocs
41dd6db301 fix: #541 2018-11-05 23:13:37 +08:00
jocs
f3198ae1e4 fix: inline format error when use shift and arrow key to select words 2018-11-04 20:36:43 +08:00
Felix Häusler
2ecc2e36f2 Revert "Workaround: Ctrl+Alt shortcut on Windows (#526)" (#540)
This reverts commit a1853cf73e.
2018-11-03 00:36:23 +08:00
Felix Häusler
63b33aa32f fix: #535 Application menu is not updated when switching windows (#539)
* fix: #535 Menu is not updated when switching windows

* Improve new file/tab UX

* Synchronize menu items after update

* Remoe debug code
2018-11-03 00:17:21 +08:00
jocs
91b514c5e1 update: hide some newly features 2018-11-02 22:06:14 +08:00
Ran Luo
55092ff15d
[WIP] Support Diagram (#529)
* feat: basic use of mermaid

* feat: add flowchart dep

* feat: handle flowchart render error

* feat: edit sequence diagram

* feat: support vega-lite

* fix: #534

* feat: basic use of mermaid

* feat: add flowchart dep

* feat: handle flowchart render error

* feat: edit sequence diagram

* feat: support vega-lite

* feat: copy paste and import and export of diagram

* finish

* fix: #537

* update: dependence
2018-11-01 22:42:34 +08:00
Jocs
f43504b2d0 fix: #534 2018-10-31 10:22:26 +08:00
Jocs
cdc9c6c8ab release version 0.13.53 2018-10-28 19:03:56 +08:00
Felix Häusler
a1853cf73e Workaround: Ctrl+Alt shortcut on Windows (#526) 2018-10-28 19:00:19 +08:00
jocs
d28511914c fix: #521 2018-10-27 17:55:04 +08:00
jocs
19d261eb5d fix: #520 2018-10-26 18:49:35 +08:00
Jocs
ee8743dc66 opti: delete some ununsed codes 2018-10-26 00:31:57 +08:00
Jocs
d42edac8eb fix: #451 empty list item error 2018-10-25 22:00:51 +08:00
Jocs
f0c691ea98 fix: #522 paste bug when paste into empty line 2018-10-25 21:19:12 +08:00
jocs
fc8a69e6af typo error 2018-10-25 08:23:09 +08:00
jocs
8335598916 fix: escap error in language input 2018-10-24 21:10:50 +08:00
jocs
6fd3608a77 fix: composed error when input Chinese 2018-10-24 20:56:11 +08:00
jocs
4825ac53b7 fix: search in markup code block 2018-10-24 20:19:24 +08:00
Jocs
7494bb3223 opti: rewrite check is edit language input 2018-10-24 10:37:41 +08:00
jocs
49cab6dc11 fix: do not show language picker in code block 2018-10-24 00:27:55 +08:00
jocs
d127c3f4cb fix: #517 2018-10-23 23:10:56 +08:00
jocs
ed1f23d173 fix: copy and paste error in code block 2018-10-23 22:51:24 +08:00
jocs
d17de7fe3f feat: support quick input tag name in html block 2018-10-23 22:28:49 +08:00
Ran Luo
39e1ea8081
Prism replace codemirror (#516)
* feat: basic use of code block by prism

* opti: remove codemirror from muya

* feat: add highlight to math and frontmatter

* feat: import and export in math block, html block, frontmatter, code block

* update: paragraph ctrl

* feat: copy and paste in new math block and html block

* feat: update code block style in dark theme

* feat: search and replace in code block

* fix: update menu item status when selection changed

* opti: optimization of updateCtrl divide it into clickCtrl and inputCtrl

* opti: search and replace in code block when no lang selected

* opti: copy paste in code block

* feat: insert paragraph before or after code block

* opti: change emoji.js to emoji.json

* feat: auto indent in code block

* opti: auto indent in code block

* opti: remove the use of snabbdom-virtualize

* fix: do not show format float box in code block

* opti: emoji picker

* update: delete some unused codes

* update: electron

* use a temp prismjs2 instead of prismjs
2018-10-23 21:21:58 +08:00
Jocs
e894efa315 opti: delete some unused codes 2018-10-18 13:30:28 +08:00
Jocs
0c770bb403 opti: remove unused dependence cheerio 2018-10-18 11:07:59 +08:00
Jocs
ecfcf32378 opti: rewrite markdown to state and remove lib parse5 2018-10-17 23:10:53 +08:00
Jocs
b68b30af4b opti: optimization some codes 2018-10-17 19:05:19 +08:00
Jocs
758441513f fix: unable render emoji when export HTML and PDF 2018-10-16 15:45:40 +08:00
Jocs
55d453a91c fix: #510 pdf export error 2018-10-16 15:10:07 +08:00
Felix Häusler
067cfb0fa7 opt: improve image upload UX (#508)
* opti: notify the user about the deletion url of the uploaded image

* Update changelog
2018-10-15 00:47:14 +08:00
jocs
9ab0085262 fix: clear format when select image 2018-10-13 22:26:29 +08:00
Felix Häusler
fdccc98ed8 Fix overflow in quick insert box (#506) 2018-10-13 21:03:59 +08:00
Felix Häusler
3e29389f42 Portable Windows application (#505)
* Add portable windows application package

* Update changelog
2018-10-13 20:49:05 +08:00
Jocs
25504413cd Merge branch 'master' of github.com:marktext/marktext 2018-10-13 01:06:08 +08:00
Jocs
189c839224 feat: import files 2018-10-13 01:05:33 +08:00
jocs
4fe477d8d5 feat: add hasFocus API 2018-10-12 22:10:19 +08:00
jocs
fa320bf898 fix: icon error in production 2018-10-11 00:43:41 +08:00
Jocs
a5901a5880 fix: #482 wrong enter action between lines 2018-10-10 16:39:19 +08:00
Jocs
3e3d213796 bug: #370 strong + emphasis doesnt work 2018-10-10 15:46:24 +08:00
Jocs
315cdc6614 update: change log 2018-10-10 14:29:26 +08:00
jocs
ceb7279e4f feat: inline format float box 2018-10-10 01:07:39 +08:00
jocs
e1ac8e2977 bug: can not use quick insert in math block and front matter 2018-10-09 21:46:00 +08:00
jocs
2f87d334dc fix: wrong arrow action in table 2018-10-09 20:58:14 +08:00
Jocs
6e18bb4859 opti: rewrite table picker 2018-10-09 15:21:27 +08:00
jocs
42891ecd88 update: electron 2018-10-08 23:52:43 +08:00
jocs
b3a8925785 feat: rewrite image picker and delete previous float box 2018-10-08 23:11:08 +08:00
jocs
9e6aefde6d bug: change float box theme color after editor theme changed 2018-10-08 21:44:49 +08:00
jocs
6a35d70545 opti: hide float box when scroll and add dark theme to flot box 2018-10-08 21:30:20 +08:00
Jocs
0327fee631 opti: colorful quick open icon 2018-10-08 18:39:42 +08:00
jocs
9dc16880a8 feat: rewrite emoji picker 2018-10-08 01:17:10 +08:00
jocs
8e2ed5c571 opti: quick insert style 2018-10-07 22:03:01 +08:00
jocs
2a1ab34279 opti: typo error 2018-10-07 21:46:07 +08:00
Jocs
dd70789b02 opti: refactor 2018-10-07 21:32:27 +08:00
Jocs
5473a7e5d8 opti: rewrite code picker 2018-10-07 21:25:02 +08:00
Jocs
94780cde3b opti: optimization of quick insert 2018-10-07 13:39:35 +08:00
Jocs
668cd3b80b opti: update position after float box resize 2018-10-07 13:20:53 +08:00
Jocs
d367fd3ae9 opti: only show front matter option when at the first paragraph 2018-10-07 12:59:16 +08:00
Jocs
5c5832bef7 feat: add html bock to paragraph menu 2018-10-07 12:12:20 +08:00
Jocs
f6fcc5cafd opti: rewrite create table in quick insert 2018-10-07 11:34:18 +08:00
Jocs
9f572324eb opti: optimization float box style 2018-10-07 11:04:23 +08:00
jocs
38add818c1 fix: wrong emoji postion when preview 2018-10-07 01:44:53 +08:00
jocs
997e7c4912 feat: quick insert with some bugs 2018-10-07 00:37:04 +08:00
jocs
7d5bc941f8 feat: quick insert basic use 2018-10-06 23:34:48 +08:00
Jocs
65da93f820 opti: extract click event into single file 2018-10-06 21:37:54 +08:00
Jocs
c8e610656a opti: extract clipboard class from index.js 2018-10-06 18:30:24 +08:00
Jocs
71cf08bb96 opti: lib structure optimization 2018-10-06 14:52:19 +08:00
jocs
37e64cabd3 feat: quick insert paragraph 2018-10-06 14:15:08 +08:00
jocs
7b1576e048 opti: optimization of search emoji 2018-10-05 19:27:30 +08:00
jocs
c0d7652f25 feat: add tooltip to editor 2018-10-05 14:59:13 +08:00
jocs
e9b3d121ab opti: delete some unused codes 2018-10-05 09:57:47 +08:00
Jocs
11f5f45b8b fix: #393 2018-10-01 13:36:07 +08:00
Jocs
94db7a7c7f fix: #399 #476 #490 math render with style miss 2018-10-01 12:37:04 +08:00
Jocs
1681b48503 opti: use Node.compareDocumentPosition to compare two paragraphs 2018-09-28 18:01:15 +08:00
jocs
af38ca1a85 fix(#450) style error when render inline math 2018-09-27 21:35:50 +08:00
jocs
5ff7f7b92e fix(#434): no need to auto pair in math block 2018-09-27 21:20:56 +08:00
jocs
6736b8d57f fix(#431): broken math expression 2018-09-27 21:03:39 +08:00
jocs
d46b3946ad opti: import files 2018-09-26 01:19:37 +08:00
jocs
aeeb34fb93 bug: check pandoc command exist before drag import 2018-09-26 00:47:11 +08:00
Jocs
818dd254dc opti: typo error 2018-09-24 21:50:21 +08:00
Jocs
2ff6b77488 feat: drag to import 2018-09-24 18:40:40 +08:00
Jocs
dc9f128249 feat: export files in file menu 2018-09-24 16:32:50 +08:00
Jocs
400bb9cdc3 update: update all the dependencies 2018-09-23 22:44:59 +08:00
Jocs
8b24b1611b update: electron to v3.0.0 2018-09-23 21:25:11 +08:00
Jocs
c3f8c9d129 opti: drag image to upload directlly 2018-09-22 18:11:11 +08:00
Jocs
a0ffb60054 opit: rewrite export pdf and print 2018-09-22 13:01:21 +08:00
Jocs
79866a4604 opti: delete some unused codes 2018-09-22 12:16:02 +08:00
Jocs
7d6af4f587 opti: rewrite export html 2018-09-22 12:01:51 +08:00
Jocs
adc491142e opti: remove duplicated codes when export file 2018-09-20 23:55:43 +08:00
Jocs
db5e7b8e8d fix: #485 Open Project command. Maybe rename to Open folder 2018-09-20 21:50:14 +08:00
Jocs
e80c8c4098 feat: #487 Show filename while hovering over marktext file on dock 2018-09-20 21:43:10 +08:00
Jocs
78ec06c3cd fix: YAML frontmatter duplicates a new line on each opening of the file #494 2018-09-20 21:03:59 +08:00
Felix Häusler
deb7f0cb1b fix: #481 add missing dot to parser markdown files only (#483) 2018-09-01 13:43:12 +08:00
Heymind
7585870b35 fix: #429 Support DataURL images (#480)
* fix: #429 Support DataURL images

* replace dataurl's regex
2018-08-30 22:57:51 +08:00
Maksym Dogadailo
f1e2085e6d fix: remove separators from help menu in OSX (#473)
* fix: remove separators in OSX

* code review: replace const with let
2018-08-24 17:37:58 +08:00
Maksym Dogadailo
bf839b5a4b Arrow key up/down navigation in a table (#470)
* fix: arrow key up/down navigation in table

When the cursor is active and pressing up/down key in the table, the cursor should leave the table.

* style: remove unnecessary space

* fix: parent table can be inside a list

Fix getting the table when it inside another element.
Now it should take first parent table.

* fix: replace/remove getTable with getTableBlock
2018-08-19 19:12:41 +08:00
Felix Häusler
45aa733ceb export styled HTML with heading id's (#460)
* export styled HTML with heading id's

* Overwrite id attribute
2018-08-16 21:51:40 +08:00
Ran Luo
26724c86d9
update readme (#465) 2018-08-12 22:03:25 +08:00
enyaxu
c01c65cbba #421 Add experiment function RTL support (#439)
* feature: Add experiment RTL support

* fix: binding to currentfile textdirection

* feature: add sourcecode RTL support

* feature: add text direction menu upgrade

* fix sourceCode does't change from menu switch text direction
2018-08-12 20:55:48 +08:00
Felix Häusler
2a4f4b9dc1 fix: recommend filename can be empty (#462) 2018-08-12 20:41:19 +08:00
Felix Häusler
6abd88e075 fix: #402 table of contents sidebar scroll bug (#461) 2018-08-12 20:38:31 +08:00
Felix Häusler
65a792d410 fix: task list item centering (#457) 2018-08-12 20:01:01 +08:00
Felix Häusler
7801c43f2e fix: #441 #451 empty list item has no paragraph (#456) 2018-08-12 19:54:16 +08:00
Maksym Dogadailo
f8edf00298 fix: title bar resizing in north direction (#455)
Fixing window resizing in north direction
Added title-no-drag to left-toolbar for non darwin systems
2018-08-12 16:36:49 +08:00
Maksym Dogadailo
77ebe1cae4 Exclude hard-line-break from printing. (#454)
Resolves 447
2018-08-12 16:34:45 +08:00
enyaxu
ab6e103983 feature: vscode debug config support (#446)
* feature: vscode debug config support

* improment vscode debug settings
2018-08-12 16:08:48 +08:00
enyaxu
486eb933b0 Improvement: #414 Add functional bracket auto-completion (#428)
* Improvement: #414 Add functional bracket auto-completion

* bugFix: #414 wrong action with delete auto-complation function

* bugfix: Fixed bullet order list chinese input error
2018-07-27 22:54:56 +08:00
Ran Luo
58fd81d9bb
fix: wrong mouse click position #416 (#423) 2018-07-19 14:59:29 +08:00
enyaxu
03dafb171f Improvement math preview styles (#419) (#424) 2018-07-17 10:14:44 +08:00
Ran Luo
405d04ce19
package and release muya (#413) 2018-07-07 00:10:30 +08:00
Ran Luo
36bad78348
bugfix: #400 (#410) 2018-07-03 10:50:08 +08:00
Ran Luo
c902f6b76b
bugfix: #406 relative image path not display (#411) 2018-07-03 10:49:46 +08:00
Ran Luo
82d82e6ac3
optimization: add gauss blur effect when open a modal (#407)
* optimization: add gauss blur effect when open a modal

* only for maxOs
2018-07-01 23:13:58 +08:00
Ran Luo
610530408b
bugfix: inline math style error in list item (#405) 2018-06-28 10:14:14 +08:00
冉四夕
96e328501f
optimization: remove magic number (#403) 2018-06-25 10:27:27 +08:00
Eviato
426704ef80 Issues 388 (#395)
* add alfred workflow into readme

* issues-388
2018-06-22 18:12:40 +08:00
Jocs
f0b361314e bug: #380 wrong action of list shortcut 2018-06-20 20:13:21 +08:00
Jocs
d7315f7a19 fix: #371 wrong paste behavior 2018-06-20 19:38:18 +08:00
Felix Häusler
816154096a fix: #343 Inconsistent color scheme in source code mode (#363)
* fix: #343 Inconsistent color scheme in source code mode

* Fix style
2018-06-19 23:00:23 +08:00
冉四夕
1e9a449c19 fix: #361 easy sidebar toggle (#368) 2018-06-19 16:16:01 +02:00
Jocs
feaf744d26 bugfix: #360 No page breaks in PDF export 2018-06-19 19:43:26 +08:00
Jocs
509eff08fa fix: #348 do not export tabs and sidebar when export PDF 2018-06-19 19:33:29 +08:00
Jocs
05bf5b96d5 bugfix: #167 #357 #344 2018-06-19 18:38:40 +08:00
Jocs
4cb2d42708 bugfix: #342 2018-06-19 11:14:09 +08:00
mklpiening
1f0b65d95c bugfix: #338 error message on export cancel (#364)
* bugfix: #338 error message on export cancel

* fixed the solution

* put package-lock.json back
2018-06-19 10:26:27 +08:00
Felix Häusler
1073e650cc fix: #347 application crash (#367) 2018-06-19 10:20:06 +08:00
Zach Alexander
3ab5070bf4 Bug #365 - Fix "move to trash" typo in sidebar menu (#366) 2018-06-18 21:07:00 +02:00
stefnotch
08b671189b bugfix: #351 smarter quotes auto pairing (#362)
* bugfix: #351 smarter quotes auto pairing

Only add a quote if it's not preceded by a letter or number

* Only single quotes need special handling
2018-06-19 01:33:46 +08:00
Jocs
32f954faec bugfix: #351 only auto pair double quote 2018-06-18 22:47:58 +08:00
Jocs
888c49e312 update readme 2018-06-17 09:38:56 +08:00
Jocs
d3878df8da rewrite float box by popper.js 2018-06-16 13:41:53 +08:00
Jocs
7621b53b49 optimization: add animation when hover sidebar icon 2018-06-15 22:33:59 +08:00
冉四夕
4be72ade97
Notification (#337)
* rewrite notice module

* optimization: show some notification when export html or pdf

* optimization: style of open project button

* little bug fix

* style: uniform titlebar hight to remove some style error
2018-06-15 21:30:10 +08:00
Jocs
ff78118611 bugfix: #335 2018-06-15 00:45:34 +08:00
Jocs
a8ced8d832 bugfix: unexpected scrollbars in source code mode #327 2018-06-14 22:56:25 +08:00
Jocs
4c0e412988 optimization: add mutiplexing mode of codemirror 2018-06-14 19:36:20 +08:00
Jocs
86f02259b8 remove debug codes 2018-06-13 22:41:56 +08:00
Jocs
cb253d41e0 fix: text cursor skip lines in paragraph #330 2018-06-13 22:28:07 +08:00
冉四夕
0fb5db7b20
bugfix: copy paste title delete text #321 (#333)
* bugfix: copy paste title delete text #321

* optimization: delete extra hash tag when copy header
2018-06-13 19:55:19 +08:00
Jocs
f22c68d2ab feature: can use delete key now, #301 2018-06-13 19:52:15 +08:00
Jocs
e4debffb2d optimization: style 2018-06-13 14:52:07 +08:00
Jocs
c2635c8b2f optimization: add animation to checkbox when clicked 2018-06-13 13:12:23 +08:00
Jocs
6df237532a style optimization in dark theme 2018-06-13 11:43:15 +08:00
冉四夕
447aa0c640
bugfix: #328 source code mode shortcut not work (#332) 2018-06-13 10:03:42 +08:00
冉四夕
434431175f
feature: copy table in context menu (#331) 2018-06-13 10:03:15 +08:00
Felix Häusler
51f9b17f95 Fix framless titlebar height (#326) 2018-06-13 10:02:47 +08:00
Jocs
8c392a7a5c feature: feedback via twitter
bugfix: can not save when there is no file edited
optimization: Don't show welcome page when init App
2018-06-12 19:42:31 +08:00
Jocs
fe6645e684 feature: add new tab menu item 2018-06-11 19:20:09 +08:00
Jocs
1735b2f7c1 optimization: rewirte table picker use popper 2018-06-11 17:14:08 +08:00
冉四夕
10278e54ca
feature: reference link and reference image (#325)
* feature: basic use of reference link

* feature: reference image
2018-06-11 10:09:26 +08:00
Jocs
69efbb1545 fix: can not copy full link #312 2018-06-08 20:01:21 +08:00
Jocs
6b45978e7c degrade electron-builder to 20.14.7 2018-06-08 10:10:28 +08:00
Jocs
9509209eff bugfix: can not export table markdown #313 2018-06-07 22:24:44 +08:00
Jocs
68b0871e94 fix style error in side bar 2018-06-07 21:01:04 +08:00
Jocs
a703501fe6 feature: tab view in dark and light theme 2018-06-06 23:29:18 +08:00
Jocs
d9e058bb57 bugfix: can not save single file 2018-06-06 22:09:21 +08:00
Jocs
7d1b7cc51a feature: brand page 2018-06-06 21:51:11 +08:00
Jocs
69aeebfba4 bufix in sidebar 2018-06-06 19:33:28 +08:00
Jocs
8310ee1082 show some notice info when some error happened 2018-06-06 18:09:50 +08:00
Jocs
233a7c0d86 if open empty project, add a create file button in side bar 2018-06-06 17:33:26 +08:00
Jocs
6df0c8fa6e feature: table of content 2018-06-06 16:08:04 +08:00
Jocs
e4877adc42 feature: search in project 2018-06-06 14:41:36 +08:00
Jocs
c099cc3ce7 bugfix: history error and main process error 2018-06-06 12:12:18 +08:00
Jocs
8fd13ed068 sidebar support dark theme 2018-06-05 23:58:32 +08:00
Jocs
184d96c76e optimization style of side bar 2018-06-05 23:09:58 +08:00
Jocs
2c8814c5ee feature: copy table from Number 2018-06-05 18:06:41 +08:00
Jocs
30de74e866 remove debug codes 2018-06-05 00:33:30 +08:00
冉四夕
dc79014147
Support Side Bar、 Tabs and Quick Open in Mark Text (#317)
* side-bar-view

* list files view

* update the structure of store, add modules

* open project and change select files

* add tabs view

* listen for file/dir changing, and update in sidebar

* delete some unused code

* context menu in sidebar

* add tool bar and tab bar menu item

* save all and save all and close

* copy, cut, paste, new file, new directory, move to trash, open in folder

* rename in sidebar
2018-06-04 11:23:51 -05:00
冉四夕
0a616f23dd
refactor main process (#309)
* refactor main process

* optimize codes in main process
2018-05-31 01:12:51 -05:00
Jocs
faf65e8eca optimization: add postcss to write css 2018-05-30 18:05:26 +08:00
Jocs
9c2bd1b7fe fix: #230 it should clear history when open a new file 2018-05-29 14:03:39 +08:00
冉四夕
3a4a954219
fix bug when paste as plain text (#306)
* fix bug when paste as plain text

* remove the implementation of insert one paragraph when arrow up|down between tables and code blocks, because we have insert paragraph before|after in context menu now

* bug fix when paste multiple math formula

* remove debug codes
2018-05-28 23:39:34 +08:00
Felix Häusler
cb5d14ef65 Detect image type by mime type (#214)
* Detect image type by mime type

* Update changelog
2018-05-28 18:17:28 +08:00
冉四夕
911f0ce8e4
feature: context menu (#304)
* context menu

* edit table row and column and insert paragraph

* update change log

* update todo list

* fix comments bugs
2018-05-28 18:17:00 +08:00
Felix Häusler
870734f384 workaround for issue #265 (#305) 2018-05-28 00:59:08 +08:00
Felix Häusler
f4f96de478 Insert spaces when tab key is pressed (#296) 2018-05-28 00:45:24 +08:00
冉四夕
80e6668957
Custom copy and paste (#303)
* Custom copy

* rewrite marked.js by es6 modules

* remove all the `var`

* optimization sanitize html

* feature: copyAsMarkdown copyAsHtml pasteAsPlainHtml

* remove debug codes
2018-05-27 14:13:41 +08:00
Jocs
6c825cb202 fix #302 exception when spaces at the end to line 2018-05-26 09:11:59 +08:00
冉四夕
16bb1de82e
Support multiple lines math input (#294)
* change another way to render math

* open\save\edit multiple lines math block

* rewrite header label style

* inline code style update

* update dark theme style

* update change log

* typo error

* update webpack to v4

* update license

* fix unexpected to delete math preview block

* fix cursor error when change mode
2018-05-26 00:58:16 +08:00
冉四夕
1a7a3d5c06
fix: #233 better HTML escape (#293)
* fix: #233 better HTML escape

* delete debug code

* remove debug codes

* fix: multiple spaces convert into one space

* update parse5 electron electron-builder

* remove unused dependencies: update and to from package.json

* optimization: cache the tokenization result only when the divice memory great than 4(4G)
2018-05-23 22:57:06 +08:00
Felix Häusler
7a928ab711 fix: #262 select text from selected table cell only (#273)
* select text from selected table cell only

* Update changelog
2018-05-23 10:12:52 +08:00
Jocs
cecdbb8d15 fix: little bug fix 2018-05-22 21:36:36 +08:00
冉四夕
25f5502068
fix #274 (#291)
* fix #274

* resolve conflict

* update changelog
2018-05-22 21:21:36 +08:00
冉四夕
30caf53d08
List item marker (#290)
* add bullet list marker to preference file

* list marker

* update change log

* update change log

* code style and remove debug codes
2018-05-22 10:19:37 +08:00
Jocs
2b05619ac2 update readme 2018-05-21 13:34:17 +08:00
Felix Häusler
dd44243cea fix: #283 (#284) 2018-05-21 10:07:53 +08:00
Jocs
3a3a3b54a5 fix: #231 cut not work in code block 2018-05-20 23:55:23 +08:00
Jocs
8745f0fd56 optimization: rewrite the valide emoji 2018-05-20 23:12:24 +08:00
Felix Häusler
066c5485dd Fix frameless window drag (#280) 2018-05-19 23:42:30 +08:00
Felix Häusler
b3cd4661ba fix: #277 inline math and typo (#278)
* fix: #277 inline math

* fix typo
2018-05-18 23:59:28 +08:00
Jocs
1e134e39f4 optmization: change folder structure of parser folder 2018-05-17 22:54:58 +08:00
Jocs
0cf6ab8cb1 update electron-builder 2018-05-17 16:10:55 +08:00
Jocs
7f3f6439e5 performance optimization, cache of tokenization 2018-05-17 15:04:16 +08:00
Jocs
3f01cb8865 optimization: change folder structure of parser 2018-05-17 14:24:25 +08:00
Felix Häusler
8255ae73b8 fix: get menu item by id (#270) 2018-05-17 10:29:07 +08:00
冉四夕
0b46fe2f2d
feature: Support setext heading but the default heading style is atx (#268)
* feature: Support `setext` heading but the default heading style is `atx`

* optimization: change fenced code block style

* change hard line break icon

* optimization: render content state
2018-05-17 10:11:53 +08:00
Jocs
968891d334 optimization: in paragraph menu 2018-05-16 17:49:26 +08:00
Jocs
c90bf90e66 bug: use render replace partialRender when insert front matter 2018-05-16 17:41:38 +08:00
Jocs
62b7e4b475 update snabbdom-to-html 2018-05-16 16:41:39 +08:00
Jocs
dcb50e3de2 fix: fix snabbdom-to-html error, and already submit an issue to snabbdom-to-html 2018-05-16 15:56:15 +08:00
Jocs
ac8322d81f fix bug in shortcut when introduced the line break 2018-05-16 01:55:06 +08:00
冉四夕
1e144f6c38
feature: support front matter #144 #220 (#261)
* feature: support front matter #144 #220

* rename in title bar only for macOs

* fix: need press `ENTER` twice when there in not `\n` at the end of front matter text

* refactor: add line block to front matter box

* update: issue template
2018-05-15 20:45:35 +08:00
Jocs
a6dbc29874 feature: Click filename to rename or save in title bar. 2018-05-14 18:12:19 +08:00
Jocs
d0b62033bf optimization: partial render 2018-05-14 15:41:26 +08:00
冉四夕
8abdf9bfe9
fix: #243 (#260) 2018-05-14 10:40:24 +08:00
冉四夕
4ecfdcc502
fix: #232 (#259) 2018-05-13 22:50:36 +08:00
Jocs
342565ccff bugfix: #251 2018-05-12 21:27:40 +08:00
Jocs
fb41bd72df delete debug code 2018-05-12 20:42:45 +08:00
Jocs
1b66bfcce5 replace all partialRender to new one 2018-05-12 20:38:50 +08:00
Jocs
776d28d863 delete some unused codes 2018-05-12 11:03:09 +08:00
Jocs
9ae3b10916 optimization: rewrite getUniqueId in editor/util/index.js 2018-05-12 10:37:37 +08:00
Jocs
6150f67871 delete some unused codes 2018-05-12 10:03:40 +08:00
Jocs
40db811e7c bugfix: some bug fix in backspace control 2018-05-10 17:33:46 +08:00
Felix Häusler
dfffc73e69 Line ending (#234)
* Prepare line ending feature

* Detect document line ending

* Line ending conversion

* Add "endOfLine" settings option

* Add line ending menu

* Notify user about mixed endings

* Fixes

* Change line ending menu entries to radio style
2018-05-09 20:29:40 +08:00
Jocs
6cad091f6d optimization: reduce the width of scroll bar in float box 2018-05-09 18:50:49 +08:00
Felix Häusler
c7f574b7b9 fix: #248 dark background disappears when export PDF (#252) 2018-05-08 10:19:04 +08:00
Jocs
dc82145d00 optimization: remove debug code 2018-05-01 21:25:43 +08:00
Jocs
70023e526a optimization: backspace ctrl 2018-05-01 19:56:41 +08:00
Jocs
44ff375517 optimization: rewrite of partial render 2018-05-01 18:40:55 +08:00
Jocs
8399cbe402 optimization of performance: source code mode 2018-04-30 21:08:03 +08:00
冉四夕
f569d2e9d9
fix some performance problem, add partial render and undo depth (#222)
* fix some performance problem, add partial render and undo depth

* optimization of performance: rewrite getBlock, getBlocks ...

* optimization of performance: cache the result of tokenization

* optimization of performance: render code block only needed
2018-04-30 01:46:09 +08:00
Felix Häusler
d19dc9f4b8 fix: #217 "ready-to-show" event issues (#219) 2018-04-30 01:22:24 +08:00