add trademark sign to docs and tests

This commit is contained in:
Philipp Kühn
2021-08-12 14:44:12 +02:00
parent 7a9ba85ba1
commit 812c49bcb1
2 changed files with 7 additions and 0 deletions

View File

@@ -69,6 +69,12 @@ context('/demos/Extensions/Typography', () => {
.should('contain', '® registeredTrademark')
})
it('should make a trademark sign', () => {
cy.get('.ProseMirror')
.type('(tm) trademark')
.should('contain', '™ trademark')
})
it('should make a one half', () => {
cy.get('.ProseMirror')
.type('1/2 oneHalf')

View File

@@ -26,6 +26,7 @@ yarn add @tiptap/extension-typography
| rightArrow | Converts <code>&dash;></code> to an arrow `→`. |
| copyright | Converts `(c)` to a copyright sign `©`. |
| registeredTrademark | Converts `(r)` to registered trademark sign `®`. |
| trademark | Converts `(tm)` to registered trademark sign `™`. |
| oneHalf | Converts `1/2` to one half `½`. |
| oneQuarter | Converts `1/4` to one quarter `¼`. |
| threeQuarters | Converts `3/4` to three quarters `¾`. |