()
| 159 | } |
| 160 | |
| 161 | export default function tagAutoRename(): Extension { |
| 162 | return EditorState.transactionFilter.of((transaction) => { |
| 163 | const pairedRename = createPairedRename(transaction); |
| 164 | if (!pairedRename) return transaction; |
| 165 | |
| 166 | return [ |
| 167 | transaction, |
| 168 | { |
| 169 | changes: pairedRename, |
| 170 | annotations: [ |
| 171 | skipTagAutoRename.of(true), |
| 172 | Transaction.userEvent.of("input.tag-rename"), |
| 173 | ], |
| 174 | }, |
| 175 | ]; |
| 176 | }); |
| 177 | } |
no test coverage detected