1 | export var heading = {
|
2 | attrs: { level: { default: 1 } },
|
3 | content: "inline*",
|
4 | group: 'block',
|
5 | defining: true,
|
6 | parseDOM: [
|
7 | { tag: 'h1', attrs: { level: 1 } },
|
8 | { tag: 'h2', attrs: { level: 2 } },
|
9 | { tag: 'h3', attrs: { level: 3 } },
|
10 | { tag: 'h4', attrs: { level: 4 } },
|
11 | { tag: 'h5', attrs: { level: 5 } },
|
12 | { tag: 'h6', attrs: { level: 6 } },
|
13 | ],
|
14 | toDOM: function (node) {
|
15 | return ['h' + node.attrs['level'], 0];
|
16 | },
|
17 | };
|
18 | //# sourceMappingURL=heading.js.map |
\ | No newline at end of file |