Commit Graph

90 Commits

Author SHA1 Message Date
syuilo 31929dad61
[MFM] Better hashtag parsing: Ignore slash 2019-02-06 00:05:26 +09:00
syuilo 33eb91c0f0
[Test] Disable some tests temporary 2019-01-31 17:15:14 +09:00
syuilo 6f1e47f0b3
[Test] Better tests 2019-01-31 15:19:59 +09:00
syuilo 57ab640221
Fix typo 2019-01-31 15:10:27 +09:00
syuilo e4c745bccd
[Test] Add MFM test 2019-01-31 14:31:25 +09:00
syuilo b515cc90e9
[MFM] Better syntax parsing
Allow nesting by same tag
2019-01-31 12:23:45 +09:00
Aya Morisawa b3fc4dc00f
Fix import 2019-01-30 17:15:12 +09:00
Aya Morisawa 28bfb45426
Avoid export default 2019-01-30 16:56:27 +09:00
Aya Morisawa c12ccb2a15
Rename analyze to parse in MFM tests 2019-01-30 15:30:05 +09:00
Aya Morisawa e3b1d00e4c
Extract parsePlain function 2019-01-30 15:27:54 +09:00
Aya Morisawa 98795aad9a
Merge plainParser into mfm 2019-01-30 15:12:48 +09:00
Aya Morisawa 3058e8f354
Rename html to toHtml 2019-01-30 14:57:13 +09:00
Aya Morisawa 4c9b66b0f0
Extract MFM types 2019-01-30 14:51:30 +09:00
MeiMei b0e00da2f7 Fix ()
* Fix 

* improve
2019-01-29 20:33:28 +09:00
syuilo 103fe8b91d
[MFM] Resolve 2019-01-27 19:32:35 +09:00
Aya Morisawa 62d41023e1 Add jump syntax ()
* Add jump syntax

* Fix typo: spin -> jump

* Fix typo
2019-01-27 19:12:45 +09:00
Aya Morisawa 1af1638e2b
Merge branch 'develop' into math-block 2019-01-27 16:41:30 +09:00
syuilo 8c62aafa97
Fix test 2019-01-27 16:36:01 +09:00
syuilo 4de62220e3
[MFM] Add flip syntax
Resolve 
2019-01-27 16:31:00 +09:00
syuilo e5d9381503
[MFM] Add spin syntax
Resolve 
2019-01-27 16:18:04 +09:00
syuilo 50b809784f
Improve readability and some cleanups 2019-01-27 13:55:11 +09:00
syuilo 71210595d2
[Test] Add a MFM test 2019-01-27 13:48:56 +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 f7c8e31b36
Update mfm.ts 2019-01-22 18:30:58 +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 ()
* 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 ()
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 
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 e9f8897fe2
Refactor MFM
Co-authored-by: syuilo syuilotan@yahoo.co.jp
2018-12-20 19:42:10 +09:00
Acid Chicken (硫酸鶏) 3bcb344ecb Re: ()
* 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 () 2018-12-05 20:11:54 +09:00
syuilo ed4860dfd9
[MFM] Add italic syntax
Resolve 
2018-12-05 17:39:26 +09:00
syuilo 6e343d50f1
[MFM] Implement strike syntax
Resolve 
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 2c6bad2501
[MFM] Improve hashtag detection 2018-11-27 02:08:51 +09:00
syuilo f3155ea180
[MFM] Add center syntax
Resolve 
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 
2018-11-23 16:02:17 +09:00