Skip to content

Commit

Permalink
feat: adding v1 marks to rich text types [TOL-786] (#416)
Browse files Browse the repository at this point in the history
* feat: adding v1 marks to rich text types [TOL-786]

* chore: adding semicolon []

* chore: prettier []
  • Loading branch information
aodhagan-cf committed Nov 29, 2022
1 parent 2b3b9e1 commit 8885de8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/rich-text-types/src/schemaConstraints.ts
@@ -1,5 +1,6 @@
import { BLOCKS } from './blocks';
import { INLINES } from './inlines';
import MARKS from './marks';

export type TopLevelBlockEnum =
| BLOCKS.PARAGRAPH
Expand Down Expand Up @@ -142,3 +143,8 @@ export const V1_NODE_TYPES = [
INLINES.EMBEDDED_ENTRY,
'text',
];

/**
* Marks before `superscript` & `subscript` release.
*/
export const V1_MARKS = [MARKS.BOLD, MARKS.CODE, MARKS.ITALIC, MARKS.UNDERLINE];

0 comments on commit 8885de8

Please sign in to comment.