Commit Graph

23 Commits

Author SHA1 Message Date
罗冉
318bfc6aa2 feat: add footnote setting option 2019-10-29 18:36:16 +08:00
罗冉
e62f660e56 add export style 2019-10-29 17:53:29 +08:00
Ran Luo
8e32838b8a Feature: support markdown extension superscript and subscript (#1531)
* Feature: support markdown extension superscript and subscript

* Update readme file

* Fix: theme setting error

* fix issue in comment

* Fix some typo
2019-10-26 17:15:49 +02:00
Felix Häusler
e5dc8f1540 Export with options (#1511)
* Export with options

* Fix function names and add documentation

* Narrow scrollbar
2019-10-25 09:03:33 +08:00
Ran Luo
41a2343e0f
Lazy load some big assets and optimize the bundle size (#1481)
* Use snap.svg to replace raphael

* lazy load diagram

* rm debug codes

* Use throw exception instead of console.error
2019-10-20 11:56:11 +08:00
Felix Häusler
e0fb779f3e fix: #1145 (#1360) 2019-09-24 00:34:44 +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
Felix Häusler
2686cfafe4 Update deps and automatically format style (#1168) 2019-07-24 10:57:21 +08:00
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
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
7dee1a4135 update prismjs (#1012)
* update prismjs

* update language.json
2019-05-08 00:13:08 +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
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
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
Felix Häusler
f226f87dcb improve task list style (#853) 2019-04-04 01:18:04 +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
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
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
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
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
758441513f fix: unable render emoji when export HTML and PDF 2018-10-16 15:45:40 +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