1 | // # What do marks exist?
|
2 | //
|
3 | // Marks are categorised into different groups. One motivation for this was to allow the `code` mark
|
4 | // to exclude other marks, without needing to explicitly name them. Explicit naming requires the
|
5 | // named mark to exist in the schema. This is undesirable because we want to construct different
|
6 | // schemas that have different sets of nodes/marks.
|
7 | //
|
8 | // Groups provide a level of indirection, and solve this problem. For the immediate use-case, one
|
9 | // group called "not_code" would have sufficed, but this an ultra-specialised to code.
|
10 |
|
11 | // Mark group for font styling (e.g. bold, italic, underline, superscript).
|
12 | export var FONT_STYLE = 'fontStyle';
|
13 |
|
14 | // Marks group for search queries.
|
15 | export var SEARCH_QUERY = 'searchQuery';
|
16 |
|
17 | // Marks group for links.
|
18 | export var LINK = 'link';
|
19 |
|
20 | // Marks group for colors (text-color, background-color, etc).
|
21 | export var COLOR = 'color';
|
22 |
|
23 | // They need to be on their own group so that they can exclude each other
|
24 | // and also work when one of them is disabled.
|
25 |
|
26 | // Marks group for alignment.
|
27 | export var ALIGNMENT = 'alignment';
|
28 |
|
29 | // Marks group for indentation.
|
30 | export var INDENTATION = 'indentation'; |
\ | No newline at end of file |