Commit Graph

154 Commits

Author SHA1 Message Date
syuilo 4de62220e3
[MFM] Add flip syntax
Resolve #4002
2019-01-27 16:31:00 +09:00
syuilo e5d9381503
[MFM] Add spin syntax
Resolve #4003
2019-01-27 16:18:04 +09:00
syuilo 4b191c7f68
[Client] Improve syntax highlighting
Resolve #3926
Resolve #3390
2019-01-27 14:34:52 +09:00
Acid Chicken (硫酸鶏) 54ce19bd56 Update parser.ts (#3999)
* Update parser.ts

* Update parser.ts

* Update parser.ts
2019-01-27 13:50:47 +09:00
syuilo 085325e65f
[MFM] Improve title syntax detection 2019-01-27 13:40:38 +09:00
Aya Morisawa 79d2374d8e
Add multiline math syntax
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
2019-01-25 23:08:06 +09:00
syuilo 42cd7c8a75
[MFM] Improve italic syntax detection 2019-01-25 16:41:51 +09:00
syuilo 1df9c1005f
[MFM] __ 構文はアルファベットのみに 2019-01-20 18:06:04 +09:00
ibrokemypie 53481accf1 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 f8ba73bebf
[MFM] Add <i> syntax 2019-01-20 17:52:11 +09:00
ibrokemypie 361af34956 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 cb6a4037f2
[MFM] Better hashtag parsing: Ignore single quotation 2019-01-17 09:33:08 +09:00
syuilo 9740db8685
[MFM] Better hashtag parsing: Ignore double quotation
Resolve #3886
2019-01-17 09:24:20 +09:00
syuilo cd628eaf54
[MFM] Better hashtag parsing: Ignore trailing colon 2019-01-12 14:10:16 +09:00
Aya Morisawa 580191fb17
Improve MFM bracket matching
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
2018-12-22 00:44:38 +09:00
Aya Morisawa 2a8f984db7
Fix comment 2018-12-21 11:28:30 +09:00
Aya Morisawa e9f8897fe2
Refactor MFM
Co-authored-by: syuilo syuilotan@yahoo.co.jp
2018-12-20 19:42:10 +09:00
Acid Chicken (硫酸鶏) c81a94ff75 Resolve #3676 (#3677) 2018-12-19 21:20:25 +09:00
syuilo 00f979f0e6
Fix bug 2018-12-19 11:16:29 +09:00
Acid Chicken (硫酸鶏) 3bcb344ecb 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
Acid Chicken (硫酸鶏) 7fe937026b Update html.ts (#3603) 2018-12-13 01:33:18 +09:00
MeiMei 79ff5888fd Fix htmlToMfm (#3600) 2018-12-12 11:47:07 +09:00
Aya Morisawa 125849673a
Use for-of instead of forEach (#3583)
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2018-12-11 20:36:55 +09:00
MeiMei 638d81b66e Show user fields (#3590) 2018-12-11 20:18:12 +09:00
tamaina 197e2c8377 #2501 (#3567)
* refactor mfm/html

* fix

* fix

* https://github.com/syuilo/misskey/pull/3567#discussion_r240023301
2018-12-09 13:15:32 +09:00
Aya Morisawa 54cb94db1d
Eliminate if-statement (#3555) 2018-12-09 03:40:40 +09:00
syuilo f72b00bec7
Update parser.ts 2018-12-07 18:26:54 +09:00
syuilo 1e7b5a0a98
Resolve #3529 2018-12-07 17:54:35 +09:00
MeiMei 4522568749 Emoji support in profile (#3514)
* Emoji in profile

* Add emojis to fields
2018-12-06 10:02:04 +09:00
Aya Morisawa 66836836ab
Add small syntax (#3506) 2018-12-05 20:11:54 +09:00
syuilo ed4860dfd9
[MFM] Add italic syntax
Resolve #3486
2018-12-05 17:39:26 +09:00
syuilo 6e343d50f1
[MFM] Implement strike syntax
Resolve #3485
2018-12-04 01:28:21 +09:00
Aya Morisawa 928d359dd2
Use takeWhile instead of some (#3475) 2018-12-02 20:28:22 +09:00
syuilo c58027e521
[MFM] Better hashtag detection 2018-12-02 06:53:57 +09:00
syuilo fe707f88a4
[MFM] Better MFM parsing 2018-12-01 10:40:09 +09:00
syuilo 48d0e2fa5f
[MFM] Improve hashtag detection 2018-11-29 20:12:37 +09:00
syuilo 2c6bad2501
[MFM] Improve hashtag detection 2018-11-27 02:08:51 +09:00
syuilo 55dcd25df1
Improve MFM 2018-11-25 13:36:52 +09:00
syuilo f3155ea180
[MFM] Add center syntax
Resolve #1775
2018-11-25 13:36:40 +09:00
syuilo 2c5162671c
Improve MFM 2018-11-25 13:23:18 +09:00
syuilo 0e49c11a4c
Refactoring 2018-11-25 13:19:33 +09:00
syuilo 3b10e93efe
[MFM] Better hashtag parsing 2018-11-25 04:44:42 +09:00
syuilo dbbc416095
[MFM] Fix hashtag detection 2018-11-24 17:18:11 +09:00
syuilo b1c12abb7c
Refactor 2018-11-24 17:10:12 +09:00
syuilo 1d1024c57a
[MFM] Improve hashtag detection
Resolve #3387
2018-11-23 16:02:17 +09:00
syuilo 8cbb961493
[MFM] Improve URL parsing
Fix #3368
2018-11-22 05:02:38 +09:00
syuilo b2f8003602
[MFM] Better inline code parse 2018-11-21 12:55:15 +09:00
syuilo 79c7712241
Improve MFM 2018-11-21 08:32:40 +09:00
syuilo 8f5f3985f4
[MFM] Fix hashtag parsing 2018-11-21 08:30:29 +09:00
syuilo 79ffbf95db
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
Aya Morisawa 3fc70996e2 Change math syntax (#3280) 2018-11-17 00:31:49 +09:00
syuilo 0ff390ed80
[MFM] Improve various parsing
Resolve #2779
Resolve #3053
2018-11-16 21:57:19 +09:00
syuilo e3b8495431
[MFM] Better URL parsing 2018-11-16 21:30:01 +09:00
Aya Morisawa ad84901f39 Support math rendering on MFM (#3260) 2018-11-16 17:03:52 +09:00
Aya Morisawa 500fc47618 Add group function (#3175) 2018-11-09 13:03:46 +09:00
syuilo 4c81e400c4
[MFM] Fix title parsing 2018-11-07 21:17:27 +09:00
MeiMei 3b6ab327c1 Twemojiで合字に対応 (#3140)
* Twemojiで合字に対応

* split emoji regex
2018-11-06 14:09:40 +09:00
syuilo e4bb534f20
Better emoji regexp 2018-11-05 20:49:17 +09:00
syuilo 65961bc15b
Refactoring & 設定でTwemojiを使うかどうか切り替えられるように 2018-11-05 19:20:35 +09:00
Acid Chicken (硫酸鶏) 31b7626d01 Make code better
refs: https://github.com/syuilo/misskey/pull/3117#pullrequestreview-171423739
refs: https://github.com/syuilo/misskey/pull/3117#pullrequestreview-171424596
refs: https://github.com/syuilo/misskey/pull/3117#pullrequestreview-171425303
2018-11-05 16:19:14 +09:00
Acid Chicken (硫酸鶏) 200ebefe92 Add support for unicode emojis
refs: https://github.com/syuilo/misskey/pull/3117#issuecomment-435745613
2018-11-05 15:15:37 +09:00
MeiMei 18571c52fb Fix: emoji regex (#3093) 2018-11-04 17:36:37 +09:00
syuilo 2e22874dec
Refactoring 2018-11-03 22:40:12 +09:00
syuilo 30f0b1c30d
Add missing semicolons 2018-11-03 22:38:12 +09:00
syuilo 600aea4dbb
[MFM] Fix emoji syntax parsing 2018-11-03 22:35:24 +09:00
syuilo daba7fe87c
[MFM] Fix title syntax parsing 2018-11-03 15:28:00 +09:00
syuilo 04aff8866e
[MFM] Better hashtag detection 2018-10-31 22:38:05 +09:00
syuilo 4b145da046
Fix MFM parsing 2018-10-29 19:09:24 +09:00
syuilo 70d0937aab
Fix #2949 2018-10-20 09:03:04 +09:00
MeiMei 5dce81c0db 非ASCIIなドメインへのメンションの修正 (#2903)
* punycodeでされたmentionのラベルをunicodeとして表示する

* post-form mentionはpunycodeにする

* mentionの表示はURLもAPI向けもunicodeにする
2018-10-14 16:56:19 +09:00
MeiMei d5818214f3 Fix 'URL is not defined' in MFM (#2782) 2018-09-28 20:54:14 +09:00
syuilo a5f817d896
Fix #2744 2018-09-21 08:33:24 +09:00
syuilo 5422482696
Resolve #1153 2018-09-20 06:27:41 +09:00
syuilo f5a937c523
Better hashtag parsing 2018-09-17 22:51:10 +09:00
syuilo 374b276f5c
Fix #2720 2018-09-17 02:45:30 +09:00
Aya Morisawa 2118fadc48 Add toUpperCase function (#2697) 2018-09-12 03:51:33 +09:00
Aya Morisawa c6ff6939a5 Add capitalize function (#2651) 2018-09-07 03:22:55 +09:00
Aya Morisawa e8948452fd Resolve #2629 (#2630) 2018-09-06 02:28:04 +09:00
syuilo ce28c70c35 Clean up 2018-09-01 23:57:05 +09:00
Aya Morisawa 291beb45fc
Use string interpolation 2018-09-01 23:12:51 +09:00
tamaina ffb345ccb5 fix #2315 (#2339)
* improve MFM to html

* improve html to MFM

* missing semicolon

* missing semicolon

* fix html to MFM

タグのリンクは解除するように

* fix bug

* misssing semicolon

* Update html-to-mfm.ts

* Update html-to-mfm.ts
2018-09-01 22:45:27 +09:00
Aya Morisawa 08a59591ae
Use startsWith and endsWith for readability 2018-08-25 22:42:26 +09:00
syuilo 000d9cc1ce Fix bug 2018-08-19 05:15:50 +09:00
Aya Morisawa 7aac2c4e29 Clean up 2018-08-19 00:31:25 +09:00
tamaina f59d0a75e4 missing semicolon 2018-08-19 00:20:36 +09:00
tamaina 22f4b3cc7b missing semicolon 2018-08-19 00:20:36 +09:00
tamaina a4283c415a improve html to MFM 2018-08-19 00:20:36 +09:00
tamaina c0fbcee38a improve MFM to html 2018-08-19 00:20:36 +09:00
syuilo bf077da72f Trim code 2018-08-16 04:42:44 +09:00
syuilo 08b431723a Refactoring 2018-08-15 20:27:49 +09:00
syuilo 83dcfec053 Improve MFM 2018-08-15 20:27:36 +09:00
syuilo 69ac7b739f Improve MFM 2018-08-15 20:23:50 +09:00
syuilo d0926a3ba1 MFMの((()))構文が顔文字と競合する対策としてタグ形式の構文も追加 2018-08-05 23:56:08 +09:00
syuilo b68f74f39c typo 2018-08-05 12:33:55 +09:00
syuilo cd28504dd8 Add new MFM syntax 2018-08-05 12:33:51 +09:00
syuilo 4ba6e1c2b2 Fix bug 2018-08-04 11:39:59 +09:00
syuilo ee050cc37e ✌️ 2018-08-04 10:40:09 +09:00
syuilo d456e5e45c Implement new MFM syntax 2018-08-03 23:27:37 +09:00
syuilo aa4ef6745a Refactorng 2018-07-07 19:19:00 +09:00
syuilo 5ea0f23389 Fix #1857 2018-07-07 12:50:09 +09:00