Commit Graph

258 Commits

Author SHA1 Message Date
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 4398651841
Refactor 2019-01-25 19:37:45 +09:00
syuilo 42cd7c8a75
[MFM] Improve italic syntax detection 2019-01-25 16:41:51 +09:00
syuilo 501379c82c
[Test] Add sone streaming tests 2019-01-25 16:14:09 +09:00
syuilo 92b45d1a9d
Refactoring 2019-01-25 15:56:49 +09:00
syuilo 76fcf122f9
[Test] Add notes/timeline test 2019-01-25 10:58:39 +09:00
syuilo 926ad23033
[Test] Add API test 2019-01-25 10:52:04 +09:00
syuilo 82f1fc6cda
Fix test 2019-01-23 13:50:36 +09:00
syuilo 4d24741d48
Fix test 2019-01-23 13:35:22 +09:00
syuilo 931f17c589
Refactor: Separate some test files 2019-01-23 12:15:27 +09:00
syuilo f7c8e31b36
Update mfm.ts 2019-01-22 18:30:58 +09:00
syuilo 26c327145f
[Test] Add streaming test
#3955
2019-01-22 18:30:49 +09:00
syuilo 882c60ef10
Update mfm.ts 2019-01-21 13:30:30 +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 b1385de758
Update mfm.ts 2019-01-20 17:53:08 +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
Acid Chicken (硫酸鶏) 018837db0b Support SVG (#3883)
* Update add-file.ts

* Update package.json

* Revert "Update add-file.ts"

This reverts commit ba0fe83b54.

* Update add-file.ts

* Update package.json

* Update add-file.ts

* Update add-file.ts

* Create image.svg

* Update api.ts
2019-01-13 18:21:10 +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 e9f8897fe2
Refactor MFM
Co-authored-by: syuilo syuilotan@yahoo.co.jp
2018-12-20 19:42:10 +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
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
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 2cd6ccb85c
Fix test 2018-11-29 06:33:23 +09:00
syuilo 2c6bad2501
[MFM] Improve hashtag detection 2018-11-27 02:08:51 +09:00
syuilo f3155ea180
[MFM] Add center syntax
Resolve #1775
2018-11-25 13:36:40 +09:00
syuilo 995cf503eb
Add MFM test 2018-11-25 13:21:39 +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 1d1024c57a
[MFM] Improve hashtag detection
Resolve #3387
2018-11-23 16:02:17 +09:00
Acid Chicken (硫酸鶏) 6951f7e74a Fix #3361 (#3362)
* Update create.ts

* Update api.ts
2018-11-22 05:06:51 +09:00
syuilo 2b4d63b1bb
Add some tests 2018-11-22 05:04:45 +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 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
syuilo 6c72545fc8
[Test] Add a test and some updtes 2018-11-17 12:52:20 +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
syuilo b8e1162e2d
Fix test 2018-11-07 21:30:28 +09:00
syuilo 501b07c383
[Test] Add MFM test 2018-11-07 19:58:05 +09:00
syuilo e542dcac30
Fix test 2018-11-05 20:40:39 +09:00
syuilo a0b13505a0
Insert missing spaces 2018-11-05 20:15:09 +09:00
syuilo 389f9bfea2
Add test 2018-11-05 20:14:49 +09:00
syuilo 630a534cee
Fix test 2018-11-05 20:10:28 +09:00
syuilo 5744c391e6
Revert "Fix test fails"
This reverts commit b9b05a7401.
2018-11-05 20:10:00 +09:00
Acid Chicken (硫酸鶏) b9b05a7401
Fix test fails 2018-11-05 19:50:38 +09:00
syuilo 65961bc15b
Refactoring & 設定でTwemojiを使うかどうか切り替えられるように 2018-11-05 19:20:35 +09:00
syuilo 600aea4dbb
[MFM] Fix emoji syntax parsing 2018-11-03 22:35:24 +09:00
syuilo ed2f94a3c1
oops 2018-11-03 15:28:11 +09:00
syuilo daba7fe87c
[MFM] Fix title syntax parsing 2018-11-03 15:28:00 +09:00
syuilo 120474ec6a
Fix bug 2018-10-30 21:55:16 +09:00
syuilo 4c160869b8
Update test/api.ts 2018-10-30 21:17:26 +09:00
syuilo 4b145da046
Fix MFM parsing 2018-10-29 19:09:24 +09:00
syuilo f51d1c5264
Fix test 2018-10-20 09:14:16 +09:00
syuilo 70d0937aab
Fix #2949 2018-10-20 09:03:04 +09:00
syuilo 8f3bce6b11
Add some messaging API tests 2018-10-17 04:01:13 +09:00
syuilo 468bc67569
Improve test 2018-10-16 19:52:14 +09:00
syuilo 572cfafbe1
Add some API tests 2018-10-16 10:18:47 +09:00
syuilo 4d6335ce9a
Add some tests and fix 2018-10-16 09:45:36 +09:00
syuilo a6844ebc9d
Add some tests 2018-10-16 08:58:45 +09:00
syuilo 99da4f9839
Add some tests and some fixes 2018-10-16 08:54:36 +09:00
syuilo 88664486af
Refactor 2018-10-16 08:27:20 +09:00
syuilo 80daf7c749
Implement API tests 2018-10-16 06:37:21 +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
syuilo 579b61a806
Update tests 2018-09-30 14:46:18 +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
syuilo ee765d0812 Fix test 2018-08-06 00:31:09 +09:00
syuilo d0926a3ba1 MFMの((()))構文が顔文字と競合する対策としてタグ形式の構文も追加 2018-08-05 23:56:08 +09:00
syuilo 005d25a07b Fix test 2018-08-05 13:50:49 +09:00
syuilo cd28504dd8 Add new MFM syntax 2018-08-05 12:33:51 +09:00
syuilo d456e5e45c Implement new MFM syntax 2018-08-03 23:27:37 +09:00
ImgBotApp 4c58dc61bc
[ImgBot] optimizes images
*Total -- 887.85kb -> 803.26kb (9.53%)

/src/client/app/desktop/assets/remove.png -- 3.04kb -> 0.41kb (86.39%)
/src/server/file/assets/bad-egg.png -- 4.67kb -> 1.64kb (64.96%)
/src/server/file/assets/cache-expired.png -- 14.67kb -> 5.91kb (59.75%)
/test/resources/Lenna.jpg -- 52.22kb -> 24.77kb (52.57%)
/assets/apple-touch-icon.png -- 4.71kb -> 2.46kb (47.82%)
/assets/icons/256.png -- 4.71kb -> 2.46kb (47.82%)
/assets/favicon/favicon.png -- 6.81kb -> 3.91kb (42.57%)
/assets/title.png -- 6.62kb -> 3.80kb (42.56%)
/src/server/file/assets/not-an-image.png -- 4.60kb -> 2.71kb (40.99%)
/src/server/file/assets/thumbnail-not-available.png -- 8.62kb -> 5.57kb (35.33%)
/src/client/assets/reactions/angry.png -- 5.74kb -> 4.50kb (21.6%)
/src/server/file/assets/tombstone.png -- 6.24kb -> 4.91kb (21.28%)
/src/client/assets/reactions/surprise.png -- 4.59kb -> 3.72kb (18.99%)
/assets/icons/128.png -- 3.07kb -> 2.49kb (18.74%)
/assets/icons/192.png -- 4.56kb -> 3.80kb (16.65%)
/src/client/assets/reactions/confused.png -- 7.08kb -> 5.92kb (16.5%)
/src/client/assets/reactions/love.png -- 3.26kb -> 2.74kb (16.07%)
/src/client/assets/reactions/laugh.png -- 7.74kb -> 6.77kb (12.47%)
/src/client/assets/reactions/hmm.png -- 6.47kb -> 5.74kb (11.38%)
/src/client/assets/reactions/congrats.png -- 10.39kb -> 9.77kb (6.04%)
/src/client/assets/pointer.png -- 246.93kb -> 232.06kb (6.02%)
/src/client/assets/error.jpg -- 55.53kb -> 52.84kb (4.84%)
/assets/icons/64.png -- 1.30kb -> 1.24kb (4.66%)
/src/server/file/assets/avatar.jpg -- 1.29kb -> 1.23kb (4.61%)
/src/client/assets/reactions/pudding.png -- 7.47kb -> 7.42kb (0.74%)
/src/client/assets/reactions/like.png -- 4.72kb -> 4.71kb (0.27%)
/src/client/app/desktop/assets/index.jpg -- 400.79kb -> 399.78kb (0.25%)
2018-07-14 14:20:36 +00:00
syuilo 58064ec633 MFM: Improve title syntax 2018-06-26 18:42:00 +09:00
syuilo e4aa003157 MFM: Improve search syntax 2018-06-23 19:31:28 +09:00
syuilo 79d1bf30a4 リモートユーザーのHTMLで表現されたプロフィールをMFMに変換するように 2018-06-21 01:21:57 +09:00
syuilo fbd51f0079 ✌️ 2018-05-18 09:21:19 +09:00
syuilo 612db86141
Delete api.ts 2018-05-18 07:14:43 +09:00
syuilo e7890eb6b9 Use Promise 2018-05-18 06:37:25 +09:00
syuilo c5feafb893 Fix test 2018-05-18 06:14:33 +09:00
syuilo 013851749f ✌️ 2018-04-26 16:02:04 +09:00
syuilo 65c8b80fab Fix test 2018-04-26 15:30:39 +09:00
syuilo f7c02819be Fix lint 2018-04-26 14:44:23 +09:00
unarist 3c4235067f Fix username/mention regexes
* Allow underscore instead of hypen
* Fix domain part handling
* Add tests for remote mention
2018-04-09 01:52:41 +09:00
syuilo a02ee3a08b Some bug fixes 2018-04-08 03:58:11 +09:00
syuilo 1a347ae9a0 Test: Remove needless test 2018-04-03 15:32:53 +09:00