Commit Graph

31 Commits

Author SHA1 Message Date
bolshoytoster
2ed5a85012
Removed the space in 'Mark Text' (#2763) (#2782)
* Removed the space in 'Mark Text' (#2763)

Literally just replaced all occurances of 'Mark Text' with 'MarkText' using sed.

This is directly related to #2763.

* Revert changes to .github directory

Reverted changelog etc.

* Added `cs` alias for `csharp` in code blocks (Fixes #2760)

* Added error handler in the renderer process (should fix #2758)

The `src/muya/lib/contentState/clickCtrl.js` file will now return if
`document.querySelector` fails to find an element.
2021-12-25 21:05:58 +08:00
Felix Häusler
bdaca98876
Update Electron to v15 (#2772)
* Prepare Electron >=14 upgrade

* Replace spectron with playwright

* Upgrade Electron to v15

* Fix unit test issue with @electron/remote

* Use per day cache directory for E2E tests

* Fix code style
2021-12-18 21:52:24 +08:00
Felix Häusler
0dd09cc684
fix XSS on language input and hyperlinks (#2548, #2601) (#2765) 2021-12-16 21:14:06 +01:00
Felix Häusler
30e8e07e83
Enable Github Actions for Linux and macOS (replacing Travis CI) (#2691) 2021-12-02 17:33:14 +01:00
Felix Häusler
e4b33816cf
Upgrade to N-API and Electron 11 (#2422)
* Upgrade to N-API and Electron 11

* Update Electron and remove workaround

* Fix ESLint error
2020-12-18 18:25:59 +08:00
Felix Häusler
2634f42204
Rebase markedjs bug fixes (#2419) 2020-12-17 23:18:55 +01:00
Felix Häusler
dd672d75f1
Update dependencies (minor only) (#2402) 2020-11-28 14:09:08 +01:00
Dan Munckton
de30d1e3fc
Fix quick open bug and freeze constants to avoid accidental mutation (#2323) 2020-11-27 13:59:56 +01:00
Felix Häusler
184861f7b9
Fix extractWord issue and optimization (#1674) 2019-11-11 17:37:22 +01:00
Felix Häusler
603ed04ab1 Add experimental spellchecker (#1424)
* Experimental spellchecker for testing purpose

* Fix 'apache' license validation

* Use local electron-spellchecker for development

* Add settings and bug fixes

* Fix Hunspell switchLanguage bug and improvements

* Fix attach to editor when enabling spell check again

* Add Hunspell license

* Copy default Huspell dictionary on first start

* Fix full language name

* Some code improvements

* Allow to add words to user dict and  bug fixes

* Allow to change Muya's spellcheck container attribute

* feat: Don't underline misspelled words

* Allow to set Hunspell on macOS

* Fix spellchecker changed value

* Refactor switchLanguage, init and enableSpellchecker

* Refactor and some fixes

* Code improvements

* electron-spellchecker cleanup and optimization

* Disable automatic language detection for Hunspell

* Fix init on macOS and update JSDoc

* Fix macOS issues and some improvements

* Load single settings value only

* Fix rebase

* Remove debug code

* Move electron-spellchecker to scoped npm repo

* Fix dictionary of ignored words on macOS

* Move replaceWordInline to core API

* Remove comment block

* Fix upstream lint error
2019-10-17 15:54:09 +08:00
Felix Häusler
9567c143d3 Allow 1x1, 1x2 and 2x1 tables (#1462) 2019-10-10 02:00:17 +08:00
Ran Luo
ff1da05e48 Fix not fail e2e XSS test (#1458) 2019-10-08 20:10:58 +02: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
Felix Häusler
5f08b381e0 Adjust titlebar title when using native window (#1137)
* Adjust titlebar title when using native window

* Fix untitled tab e2e test
2019-07-04 10:52:51 +08:00
Ran Luo
79f912332e
update deps (#1105)
* update deps

* update node version in CI file

* update node version in .babelrc

* update node version to 10

* update electron

* update karma-electron

* update element-ui etc

* update vega-embed etc

* update webpack-dev-server
2019-06-20 22:54:04 +08:00
Felix Häusler
72702427f1 Add ripgrep as find in files backend (#1086)
* Add ripgrep as find in files backend

* Fix API limit on Appveyor

* Fix css style

* support search and jump (#1)

* Style fixes
2019-06-20 22:46:24 +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
df9d5c8459 Remove git dependency and update documentation (#1000)
* Remove git dependency and update documentation

* Update documentation
2019-05-02 08:59:42 +08:00
Ran Luo
413b3f92db Add a result table (#965)
* Add a result table

* update comments

* update readme
2019-04-23 17:18:04 +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
Felix Häusler
02841ffdf9 fix: subsequent list paragraphs (#916) 2019-04-12 08:08:43 +08:00
Felix Häusler
1c4ec7cae4 add list indentation settings (#900) 2019-04-10 22:43:21 +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
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
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
7aa723b9e7 Add XSS e2e test and fix error handler issue (#700) 2019-02-27 22:16:47 +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
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
Jocs
94ca31d58a first commit 2017-11-13 00:05:57 +08:00