Commit Graph

112 Commits

Author SHA1 Message Date
ibrokemypie
57b4b20bb6 Add double underscore syntax for bold markdown (#3733)
* Add double underscore syntax for bold markdown
see https://github.com/syuilo/misskey/pull/3732
this allows bold text through either **text** or __text__

* Add tests for underscore bold mfm syntax
2019-01-20 18:00:55 +09:00
syuilo
a2fc3e9be9 Update mfm.ts 2019-01-20 17:53:08 +09:00
syuilo
9d93e1d659 [MFM] Add <i> syntax 2019-01-20 17:52:11 +09:00
ibrokemypie
273b78c080 Change italic syntax to fit with other markdown implementations (#3916)
currently italics require an html <i> syntax, unlike every other formatter. this is very confusing, especially as there doesnt seem to be any documentation.
this change makes both _text_ and *text* work, both things that users would expect from other implementations of markdown such as pleroma, discord and github.

Add test
2019-01-20 17:44:52 +09:00
syuilo
98bee28b36 [MFM] Better hashtag parsing: Ignore single quotation 2019-01-17 09:33:08 +09:00
syuilo
66e4010f1e [MFM] Better hashtag parsing: Ignore double quotation
Resolve #3886
2019-01-17 09:24:20 +09:00
syuilo
23bcb95c0a [MFM] Better hashtag parsing: Ignore trailing colon 2019-01-12 14:10:16 +09:00
Aya Morisawa
06d7e119ef Improve MFM bracket matching
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
2018-12-22 00:44:38 +09:00
Aya Morisawa
45c9667c5c Refactor MFM
Co-authored-by: syuilo syuilotan@yahoo.co.jp
2018-12-20 19:42:10 +09:00
Acid Chicken (硫酸鶏)
f2c676cbdd Re: #3457 (#3614)
* Update parser.ts

* Update user.ts

* Update search.ts

* Update parser.ts

* Update parser.ts

* Update parser.ts

* Update parser.ts

* Update parser.ts

* Update parser.ts

* Update mfm.ts

* Update parser.ts

* Merge branch 'develop' into 3440-mk2

* Fix typo

* Update parser.ts

* Update mfm.ts

* Update mfm.ts
2018-12-17 19:11:38 +09:00
Aya Morisawa
06eeb36ae5 Add small syntax (#3506) 2018-12-05 20:11:54 +09:00
syuilo
82e478f2e3 [MFM] Add italic syntax
Resolve #3486
2018-12-05 17:39:26 +09:00
syuilo
46c6611f36 [MFM] Implement strike syntax
Resolve #3485
2018-12-04 01:28:21 +09:00
syuilo
c8b69f2ee5 [MFM] Better hashtag detection 2018-12-02 06:53:57 +09:00
syuilo
44e44c69fd [MFM] Better MFM parsing 2018-12-01 10:40:09 +09:00
syuilo
f783ef38b5 [MFM] Improve hashtag detection 2018-11-29 20:12:37 +09:00
syuilo
bdd12c0bfc [MFM] Improve hashtag detection 2018-11-27 02:08:51 +09:00
syuilo
df88d82cae [MFM] Add center syntax
Resolve #1775
2018-11-25 13:36:40 +09:00
syuilo
38d4c0e9bb Add MFM test 2018-11-25 13:21:39 +09:00
syuilo
cba9250492 [MFM] Better hashtag parsing 2018-11-25 04:44:42 +09:00
syuilo
d75a6faeba [MFM] Fix hashtag detection 2018-11-24 17:18:11 +09:00
syuilo
0ce969d4a6 [MFM] Improve hashtag detection
Resolve #3387
2018-11-23 16:02:17 +09:00
syuilo
dee36018fc Add some tests 2018-11-22 05:04:45 +09:00
syuilo
4705cd1008 [MFM] Improve URL parsing
Fix #3368
2018-11-22 05:02:38 +09:00
syuilo
12aa24d354 [MFM] Better inline code parse 2018-11-21 12:55:15 +09:00
syuilo
91622ff1db [MFM] Fix hashtag parsing 2018-11-21 08:30:29 +09:00
syuilo
60252911eb Improve MFM parser (#3337)
* wip

* wip

* Refactor

* Refactor

* wip

* wip

* wip

* wip

* Refactor

* Refactor

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Clean up

* Update misskey-flavored-markdown.ts

* wip

* wip

* wip

* wip

* Update parser.ts

* wip

* Add new test

* wip

* Add new test

* Add new test

* wip

* Refactor

* Update parse.ts

* Refactor

* Update parser.ts

* wip
2018-11-21 05:11:00 +09:00
syuilo
381d7914fa [Test] Add a test and some updtes 2018-11-17 12:52:20 +09:00
Aya Morisawa
6e8a20eabe Change math syntax (#3280) 2018-11-17 00:31:49 +09:00
syuilo
5d8c97dbc7 [MFM] Improve various parsing
Resolve #2779
Resolve #3053
2018-11-16 21:57:19 +09:00
syuilo
5e877644ca [MFM] Better URL parsing 2018-11-16 21:30:01 +09:00
Aya Morisawa
97d4c04276 Support math rendering on MFM (#3260) 2018-11-16 17:03:52 +09:00
syuilo
25b0cbccc5 Fix test 2018-11-07 21:30:28 +09:00
syuilo
3c4530ab7a [Test] Add MFM test 2018-11-07 19:58:05 +09:00
syuilo
71d1c641d5 Fix test 2018-11-05 20:40:39 +09:00
syuilo
b40afd98e3 Insert missing spaces 2018-11-05 20:15:09 +09:00
syuilo
c50196826c Add test 2018-11-05 20:14:49 +09:00
syuilo
8ee3177a17 Fix test 2018-11-05 20:10:28 +09:00
syuilo
ecc3f412d1 Revert "Fix test fails"
This reverts commit b9b05a74017c37ae23986c005deac0a3465d497c.
2018-11-05 20:10:00 +09:00
Acid Chicken (硫酸鶏)
a81494a8bf Fix test fails 2018-11-05 19:50:38 +09:00
syuilo
ceb2a316cd Refactoring & 設定でTwemojiを使うかどうか切り替えられるように 2018-11-05 19:20:35 +09:00
syuilo
905bde1ba5 [MFM] Fix emoji syntax parsing 2018-11-03 22:35:24 +09:00
syuilo
fcc7d48ba6 oops 2018-11-03 15:28:11 +09:00
syuilo
a0a3786b69 [MFM] Fix title syntax parsing 2018-11-03 15:28:00 +09:00
syuilo
4cdf5f82a1 Fix MFM parsing 2018-10-29 19:09:24 +09:00
syuilo
51f3f4e6fc Fix test 2018-10-20 09:14:16 +09:00
syuilo
68cb0123a6 Fix #2949 2018-10-20 09:03:04 +09:00
syuilo
64087acfee Implement API tests 2018-10-16 06:37:21 +09:00
MeiMei
3bdc97b242 非ASCIIなドメインへのメンションの修正 (#2903)
* punycodeでされたmentionのラベルをunicodeとして表示する

* post-form mentionはpunycodeにする

* mentionの表示はURLもAPI向けもunicodeにする
2018-10-14 16:56:19 +09:00
syuilo
0e14dc6e43 Update tests 2018-09-30 14:46:18 +09:00
syuilo
3824dccbe3 Fix #2744 2018-09-21 08:33:24 +09:00
syuilo
9220081e12 Resolve #1153 2018-09-20 06:27:41 +09:00
syuilo
20c4d59c85 Better hashtag parsing 2018-09-17 22:51:10 +09:00
syuilo
900739eb71 Fix #2720 2018-09-17 02:45:30 +09:00
syuilo
479b01d493 Fix test 2018-08-06 00:31:09 +09:00
syuilo
7a627fd83e MFMの((()))構文が顔文字と競合する対策としてタグ形式の構文も追加 2018-08-05 23:56:08 +09:00
syuilo
559e6d0722 Fix test 2018-08-05 13:50:49 +09:00
syuilo
02cf340497 Add new MFM syntax 2018-08-05 12:33:51 +09:00
syuilo
8e959f38dc Implement new MFM syntax 2018-08-03 23:27:37 +09:00
syuilo
9887e2e08d MFM: Improve title syntax 2018-06-26 18:42:00 +09:00
syuilo
8134df00a6 MFM: Improve search syntax 2018-06-23 19:31:28 +09:00
syuilo
899b69c2a9 リモートユーザーのHTMLで表現されたプロフィールをMFMに変換するように 2018-06-21 01:21:57 +09:00