Skip to content

Commit f98e23c

Browse files
authored
Merge branch 'main' into shuuji3/chore/use-latest-i18n
2 parents 4afc41d + e6ebde3 commit f98e23c

File tree

3 files changed

+135
-8
lines changed

3 files changed

+135
-8
lines changed

composables/content-parse.ts

+5
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ export function parseMastodonHTML(
9090
inReplyToStatus,
9191
} = options
9292

93+
// remove newline before Tags
94+
html = html.replace(/\n(<[^>]+>)/g, (_1, raw) => {
95+
return raw
96+
})
97+
9398
if (markdown) {
9499
// Handle code blocks
95100
html = html

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"devDependencies": {
116116
"@antfu/eslint-config": "^3.9.1",
117117
"@antfu/ni": "^0.23.0",
118+
"@nuxt/schema": "^3.14.1592",
118119
"@types/chroma-js": "^2.4.4",
119120
"@types/file-saver": "^2.0.7",
120121
"@types/fnando__sparkline": "^0.3.7",

pnpm-lock.yaml

+129-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)