(span: StyledSpan)
| 231 | /* @todo: Implement HTML terminal */ |
| 232 | class _HtmlTerminal extends Terminal { |
| 233 | renderSpan(span: StyledSpan): string { |
| 234 | let content = |
| 235 | typeof span.content === 'string' |
| 236 | ? span.content |
| 237 | : this.renderSpans(span.content); |
| 238 | |
| 239 | if (span.italic) { |
| 240 | if (span.weight === 'bold') content = `<strong>${content}</strong>`; |
| 241 | else content = `<em>${content}</em>`; |
| 242 | } else if (span.weight === 'bold') content = `<strong>${content}</strong>`; |
| 243 | |
| 244 | if (span.mono) content = `<code>${content}</code>`; |
| 245 | return content; |
| 246 | } |
| 247 | // display(s: TaggedText[]): void {} |
| 248 | } |
| 249 |
nothing calls this directly
no test coverage detected