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}"], files: ["**/*.{ts,tsx}"],
languageOptions: { languageOptions: {
ecmaVersion: 2020, ecmaVersion: 2022,
globals: globals.browser, globals: globals.browser,
}, },
plugins: { plugins: {

View File

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

View File

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