a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

some minor naming changes

celine 5f68f39c 0fb8a3ea

+3 -2
+3 -2
components/TextBlock/schema.ts
··· 49 49 }, 50 50 parseDOM: [ 51 51 { 52 - tag: "span", 52 + tag: "span.highlight", 53 53 getAttrs(dom: HTMLElement) { 54 54 return { 55 - color: dom.getAttribute("color"), 55 + color: dom.getAttribute("data-color"), 56 56 }; 57 57 }, 58 58 }, ··· 63 63 "span", 64 64 { 65 65 class: "highlight", 66 + "data-color": color, 66 67 style: `background-color: ${color === "1" ? theme.colors["highlight-1"] : color === "2" ? theme.colors["highlight-2"] : theme.colors["highlight-3"]}`, 67 68 }, 68 69 0,