Skip to content

Commit

Permalink
[field] PT: add more annotation and inline object symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin authored and rexxars committed Oct 6, 2020
1 parent b60a953 commit 1de7274
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions packages/@sanity/field/src/types/portableText/diff/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,22 @@ export const ANNOTATION_SYMBOLS = [
['\uF069', '\uF06A'],
['\uF06B', '\uF06C'],
['\uF06E', '\uF06F'],
['\uF070', '\uF071']
['\uF070', '\uF071'],
['\uF072', '\uF073'],
['\uF074', '\uF075'],
['\uF076', '\uF077'],
['\uF078', '\uF079'],
['\uF07A', '\uF07B'],
['\uF07C', '\uF07D'],
['\uF07E', '\uF07F'],
['\uF080', '\uF081'],
['\uF082', '\uF083'],
['\uF084', '\uF085'],
['\uF086', '\uF087'],
['\uF088', '\uF089'],
['\uF08A', '\uF08B'],
['\uF08C', '\uF08D'],
['\uF08E', '\uF08F']
]

export const INLINE_SYMBOLS = [
Expand All @@ -82,7 +97,39 @@ export const INLINE_SYMBOLS = [
'\uF09C',
'\uF09D',
'\uF09E',
'\uF09F'
'\uF09F',
'\uF0A0',
'\uF0A1',
'\uF0A2',
'\uF0A3',
'\uF0A4',
'\uF0A5',
'\uF0A6',
'\uF0A7',
'\uF0A8',
'\uF0A9',
'\uF0AA',
'\uF0AB',
'\uF0AC',
'\uF0AD',
'\uF0AE',
'\uF0AF',
'\uF0B0',
'\uF0B1',
'\uF0B2',
'\uF0B3',
'\uF0B4',
'\uF0B5',
'\uF0B6',
'\uF0B7',
'\uF0B8',
'\uF0B9',
'\uF0BA',
'\uF0BB',
'\uF0BC',
'\uF0BD',
'\uF0BE',
'\uF0BF'
]

const startMarkSymbols = MARK_SYMBOLS.map(set => set[0]).concat(
Expand Down

0 comments on commit 1de7274

Please sign in to comment.