mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
vjudge: handle br tag
This commit is contained in:
1 parent
0593d4d86a
commit
ebad34a426
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/vjudge",
|
"name": "@hydrooj/vjudge",
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"description": "Submit problems to remote oj",
|
"description": "Submit problems to remote oj",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ const sampleParser = (mode: 'input' | 'output') =>
|
|||||||
if (!node.innerHTML.includes('test-example-line')) {
|
if (!node.innerHTML.includes('test-example-line')) {
|
||||||
return `\n
|
return `\n
|
||||||
\`\`\`${mode}${index + 1}
|
\`\`\`${mode}${index + 1}
|
||||||
${node.innerHTML.trim()}
|
${node.innerHTML.trim().replace(/<br>/g, '\n')}
|
||||||
\`\`\`
|
\`\`\`
|
||||||
\n`;
|
\n`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user