mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-13 19:55:39 +02:00
Add new text syntax
And some fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user