UNPKG

1.19 kBJavaScriptView Raw
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// Mark group for font styling (e.g. bold, italic, underline, superscript).
11export var FONT_STYLE = 'fontStyle';
12// Marks group for search queries.
13export var SEARCH_QUERY = 'searchQuery';
14// Marks group for links.
15export var LINK = 'link';
16// Marks group for colors (text-color, background-color, etc).
17export var COLOR = 'color';
18// They need to be on their own group so that they can exclude each other
19// and also work when one of them is disabled.
20// Marks group for alignment.
21export var ALIGNMENT = 'alignment';
22// Marks group for indentation.
23export var INDENTATION = 'indentation';
24//# sourceMappingURL=groups.js.map
\No newline at end of file