Function
colorToHex
(color: "Red" | "Green" | "Blue")
Source from the content-addressed store, hash-verified
| 112 | Doc.annotate(doc, { _tag: "Header", level }) |
| 113 | |
| 114 | const colorToHex = (color: "Red" | "Green" | "Blue"): string => { |
| 115 | switch (color) { |
| 116 | case "Red": { |
| 117 | return "#f00" |
| 118 | } |
| 119 | case "Green": { |
| 120 | return "#0f0" |
| 121 | } |
| 122 | case "Blue": { |
| 123 | return "#00f" |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | const encloseInTag = (content: string, html: SimpleHtml): string => { |
| 129 | switch (html._tag) { |
Tested by
no test coverage detected