mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-22 05:55:13 +00:00
5fe291a7e7
* implement parser with TypeScript (#116) * clean parser * parser, success, failure, str, parser.map * seq * atLeast, any, alt, match, notMatch * mergeText * improve seq * lazy, createLanguage * types * regexp, refactor * nest limit * lint * state * syntaxes * sep1, succeeded, option, fn * simple * strikeWave, plainTag, inlineCode, mathInline * mention, refactor * seqPartial * 🚀 * parser trace * fix mention, implement hashtag * lineBegin, lineEnd, refactor * imple codeBlock, fix lineEnd * codeBlock, mathBlock * fix codeBlock * fix mathBlock * fix codeBlock * lint * fix inlineCode * 🚀 * centerTag * fix nesting limit * fix unicodeEmoji * 🚀 * search * refactor * seqPartial -> seqOrText * lint * url, urlAlt * 🚀 * 🚀 * text * fix * link * linkLabel state * lint * nesting limit for link label * fix url bracket pair * nest * refactor * refactor * remove * add test * wip quote * add quote test * quote * refactor * hashtag * refactor * type * type * refactor * lint * url * italicAsta, italicUnder * italicAsta, italicUnder, mention, rethink spec * rethink spec * test: change implementation-dependent parts * hashtag * add mention test * mention * mention * mention * mention * url * test * hashtag * Revert "Auxiliary commit to revert individual files from 373972beef10eb99ff3e3635a32a207854154a2a" This reverts commit 622b66e20778ad5c283ea7629db853cbf2bb601f. * package-lock * Update tsconfig.json * Update tsconfig.json * ignore a tsd error when importing twemoji-parser regexp * lint * lint Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> * v0.23.0-canary.1 * readme * update chagelog * update changelog * update changelog * refactor * update core combinators Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2.1 KiB
2.1 KiB
0.23.0 (unreleased)
Features
- Add Plain syntax (#101)
Improvements
- The parser is now implemented in TypeScript! 🎉 (#92)
- Disable all syntax when nesting limited (#90)
Changes
- Rename existing plain series (#113):
- parsePlain -> parseSimple
- MfmPlainNode -> MfmSimpleNode
0.22.1
npm: https://www.npmjs.com/package/mfm-js/v/0.22.1
Improvements
- Removes a unnecessary built file
0.22.0
npm: https://www.npmjs.com/package/mfm-js/v/0.22.0
Features
- Unicode emoji supports Unicode 14.0 emoji (#109)
Improvements
()
pair is available on outside the hashtag (#111)- Changes specs the center tag and strike (#108,
100fb0b
) - Improves link label parsing (#107)
Bugfixes
- If there is a
[]
pair before the link, it will be mistakenly recognized as a part of link label. (#104)
0.21.0
npm: https://www.npmjs.com/package/mfm-js/v/0.21.0
Features
- Supports nestLimit option. (#87, #91)
Improvements
- Improve generation of brackets property of url node.
Bugfixes
- Fix the Link node of the enclosed in
<>
. (#84) - Fix parsing of the link label.
0.20.0
npm: https://www.npmjs.com/package/mfm-js/v/0.20.0
Features
- Add tag syntaxes of bold
<b></b>
and strikethrough<s></s>
. (#76) - Supports whitelisting of MFM function names. (#77)
Improvements
- Mentions in the link label are parsed as text. (#66)
- Add a property to the URL node indicating whether it was enclosed in
<>
. (#69) - Disallows
<
and>
in hashtags. (#74) - Improves security.
Changes
- Abolished MFM function v1 syntax. (#79)
0.19.0
npm: https://www.npmjs.com/package/mfm-js/v/0.19.0
Improvements
- Ignores a blank line after quote lines. (#61)
0.18.0
npm: https://www.npmjs.com/package/mfm-js/v/0.18.0
Improvements
- Twemoji v13.1 is supported.
0.17.0
npm: https://www.npmjs.com/package/mfm-js/v/0.17.0
Improvements
- Improves syntax of inline code.
- Improves syntax of url.
- Improves syntax of hashtag.