Fix article formatting by replacing newline characters in resource details

This commit is contained in:
2025-06-04 20:23:17 +08:00
parent 2f1859c0fb
commit 0e6ea060c5
3 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ export default tseslint.config(
],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
ecmaVersion: 2022,
globals: globals.browser,
},
plugins: {

View File

@@ -494,7 +494,7 @@ function Article({ resource }: { resource: ResourceDetails }) {
},
}}
>
{resource.article}
{resource.article.replaceAll("\n", " \n")}
</Markdown>
</article>
);

View File

@@ -1,9 +1,9 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2020",
"target": "ES2022",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,