ci: test project on pull requests (#338)
This commit is contained in:
parent
1c0f8b0147
commit
408aff20ee
3 changed files with 37 additions and 2 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue