diff options
Diffstat (limited to 'src/text/html.ts')
| -rw-r--r-- | src/text/html.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/text/html.ts b/src/text/html.ts index 797f3b3f33..e2db2457c1 100644 --- a/src/text/html.ts +++ b/src/text/html.ts @@ -54,6 +54,12 @@ const handlers = { document.body.appendChild(blockquote); }, + title({ document }, { title }) { + const h1 = document.createElement('h1'); + h1.textContent = title; + document.body.appendChild(h1); + }, + text({ document }, { content }) { for (const text of content.split('\n')) { const node = document.createTextNode(text); |