Skip to content

Commit

Permalink
Create weak-ghosts-cheer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Aug 17, 2021
1 parent 0a0d7f9 commit 2eb3bb7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .changeset/weak-ghosts-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
"@udecode/plate-autoformat": minor
---

features:
- new rules:
- `autoformatArrow`, `autoformatLegal`, `autoformatLegalHtml`, `autoformatPunctuation`, `autoformatComparison`, `autoformatEquality`, `autoformatFraction`, `autoformatMath`, `autoformatDivision`, `autoformatOperation`, `autoformatSubscriptNumbers`, `autoformatSubscriptSymbols`, `autoformatSuperscriptNumbers`, `autoformatSuperscriptSymbols`
- types:
- `AutoformatMarkOptions`: options for `autoformatMark`
- `AutoformatTextOptions`: options for `autoformatText`
- `AutoformatBlockOptions`: options for `autoformatBlock`
- `AutoformatCommonRule`: rule fields for all modes
- `MatchRange`
- `GetMatchPointsReturnType`
- `mode: 'block'`, `autoformatBlock`:
- `mode: 'mark'`: `type` now accepts `string[]` to add multiple marks
- new `mode: 'text'` that can be used to replace `match` by any text using the `format` option
- `match: string | string[]`
- `format: string
| string[]
| ((editor: TEditor, options: GetMatchPointsReturnType) => void)``string`: the matched text is replaced by that string – `string[]`: the matched texts are replaced by these strings (e.g. smart quotes) – `function`: called when there is a match.
- `getMatchPoints`: used by `autoformatMark` and `autoformatText` to get the matching points
- `getMatchRange`: maps `match` and `trigger` option to start to match, end to match and triggers.
- `isPreviousCharacterEmpty`

0 comments on commit 2eb3bb7

Please sign in to comment.