Commit Graph

10 Commits

Author SHA1 Message Date
Ran Luo
d24a578a1a
fix: #2854 codeblock highlight error (#2877) 2022-01-13 12:59:57 +08:00
Ran Luo
8af9605e35
feat: support solidity in codeblock and optimization of file icons (#2775)
* feat: support solidity in codeblock and optimization of file icons

* feat: update file icons
2021-12-26 16:21:00 +08:00
zmen
b1ac9bf064
fix: prism language missing while load dependent language (#1752) (#2335) 2020-11-27 14:02:22 +01:00
Felix Häusler
2686cfafe4 Update deps and automatically format style (#1168) 2019-07-24 10:57:21 +08:00
Ran Luo
8474a997b0
feat: support prism language alias (#1031) 2019-05-22 21:54:31 +08: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
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
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