ci: test project on pull requests (#338)

This commit is contained in:
Daniel Roe 2022-12-04 23:28:04 +00:00 committed by GitHub
parent 1c0f8b0147
commit 408aff20ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 2 deletions

View file

@ -55,7 +55,7 @@ async function render(input: string, emojis?: Record<string, Emoji>) {
const tree = parseMastodonHTML(input, emojis)
const html = await renderTree(tree)
let formatted = ''
const serializedText = tree.children.map(n => treeToText(n)).join('').trim()
const serializedText = treeToText(tree).trim()
try {
formatted = format(html, {