Commit Graph

26 Commits

Author SHA1 Message Date
Felix Häusler
2634f42204
Rebase markedjs bug fixes (#2419) 2020-12-17 23:18:55 +01:00
Felix Häusler
5bb7856cb4
Add GitLab math block support (#2119) 2020-06-04 01:31:21 +02:00
Felix Häusler
79c7200406
Fix footnote renderer exception in markedjs (#2162) 2020-05-31 23:20:56 +02:00
Felix Häusler
23435ce6b1 fix: 1733 wrong task list indentation in parser (#1835) 2019-12-22 12:52:34 +08:00
Ran Luo
f718ca7f14
Merge pull request #1594 from marktext/adjust-export-style
Adjust export theme style
2019-11-04 14:39:51 +08:00
Felix Häusler
ca57e59a48
Adjust export theme style 2019-11-03 17:15:32 +01:00
Ran Luo
fed4eafcca
Merge branch 'develop' into fix-1578 2019-11-02 23:52:41 +08:00
jocs
d7b655ac6c fix #1578 2019-11-02 10:46:39 +08:00
罗冉
efd38644cd feat: fix [^longnote] is not auto numbered in exported document but in footnotes. 2019-10-30 11:36:39 +08:00
罗冉
5061548784 add export html 2019-10-29 17:32:53 +08:00
Felix Häusler
ddf9c50a42
Complete TOML and JSON front matter (#1402)
* Complete TOML and JSON front matter

* Add frontmatter settings
2019-10-02 23:27:29 +02:00
Felix Häusler
056cdf0c08
Markedjs rebase (#1380)
* Fix breaks: true marked#1507

* Fix <em> issue with mixed content marked#1451

* Fix headings marked#1511

* Link parenthesis marked#1509

* Sanitize hardening marked#1504

* relative baseUrl marked#1526

* remove substitutions marked#1532

* Update documentation

* Use marked.js heading regex
2019-09-27 19:53:44 +02:00
Felix Häusler
2686cfafe4 Update deps and automatically format style (#1168) 2019-07-24 10:57:21 +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
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
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
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
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
270d33f6c8 fix: update list item lexer and parser (#803)
* fix: CommonMark 264

* fix: muya list behavior
2019-03-27 19:51:46 +08:00
Felix Häusler
741bc50ea3 Update markedjs (#770)
* Update markedjs

* Update changelog
2019-03-24 21:04:26 +08: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
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
Jocs
d42edac8eb fix: #451 empty list item error 2018-10-25 22:00:51 +08:00
Jocs
ecfcf32378 opti: rewrite markdown to state and remove lib parse5 2018-10-17 23:10:53 +08:00
Ran Luo
405d04ce19
package and release muya (#413) 2018-07-07 00:10:30 +08:00