(line: string)
| 46 | } |
| 47 | |
| 48 | function cells(line: string): Cell[] { |
| 49 | const list: Cell[] = [] |
| 50 | for (const char of line) { |
| 51 | if (char === "_") { |
| 52 | list.push({ char: " ", mark: "full" }) |
| 53 | continue |
| 54 | } |
| 55 | |
| 56 | if (char === "^") { |
| 57 | list.push({ char: "▀", mark: "mix" }) |
| 58 | continue |
| 59 | } |
| 60 | |
| 61 | if (char === "~") { |
| 62 | list.push({ char: "▀", mark: "top" }) |
| 63 | continue |
| 64 | } |
| 65 | |
| 66 | list.push({ char, mark: "text" }) |
| 67 | } |
| 68 | |
| 69 | return list |
| 70 | } |
| 71 | |
| 72 | function title(text: string | undefined): string { |
| 73 | if (!text) { |