Commit Graph

24 Commits

Author SHA1 Message Date
Felix Häusler
19eab7d1fc
Add option to disable HTML rendering (#2414) 2020-12-17 23:19:22 +01:00
Felix Häusler
8c4cc20bd1
Fix image export issues on Windows (#2129) 2020-05-31 23:18:18 +02:00
Ran Luo
e91193af23
fix: dompurify warning when init app (#1781) 2019-12-05 10:33:50 +08:00
Ran Luo
980073bc8a
fix: #1668 unexpect encode image url on windows (#1740) 2019-11-22 19:00:49 +08:00
罗冉
ec91b31d49 Create footnote from identifier and backlink 2019-10-27 23:52:23 +08: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
2930cdc052
fix #1297 (#1302)
* fix #1297

* Add comment and label the solved issue
2019-09-27 10:43:56 +08:00
Ran Luo
20220f6b5f Support paste urls from Firefox and others (#1363) 2019-09-24 20:21:00 +02:00
Ran Luo
141d25d896
Feat: parse page title when paste a link (#1344) 2019-09-17 16:15:33 +08:00
Ran Luo
cb7be189cc
Feat: Support inline image and small image (#1318) 2019-09-03 22:56:46 +08:00
Ran Luo
46371f8c56
Update Babel to 7.x.x (#1253)
* update deps

* update babel

* add babel-runtime

* update config file

* update config file

* modify config

* modify some codes

* update some dependences

* Update allowed licenses validate
2019-09-01 03:30:01 +08:00
Ran Luo
afe688911a feat: add click delete url to clipboard when upload image to SMMS (#1173) 2019-07-23 20:25:17 +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
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
d7eccc005b fix: warning condition (#927) 2019-04-12 23:37:57 +08:00
Felix Häusler
8951879b52 fix: markdown image url (#911) 2019-04-11 21:58:14 +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
Felix Häusler
7c5a6143b9 fix: broken relative image sources when exporting (#761) 2019-03-17 17:44:26 +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
5473a7e5d8 opti: rewrite code picker 2018-10-07 21:25:02 +08:00
Jocs
9f572324eb opti: optimization float box style 2018-10-07 11:04:23 +08:00
jocs
37e64cabd3 feat: quick insert paragraph 2018-10-06 14:15:08 +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
Ran Luo
405d04ce19
package and release muya (#413) 2018-07-07 00:10:30 +08:00