mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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",
|
||||
"version": "1.6.0",
|
||||
"version": "1.6.1",
|
||||
"description": "Submit problems to remote oj",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -60,7 +60,7 @@ const sampleParser = (mode: 'input' | 'output') =>
|
||||
if (!node.innerHTML.includes('test-example-line')) {
|
||||
return `\n
|
||||
\`\`\`${mode}${index + 1}
|
||||
${node.innerHTML.trim()}
|
||||
${node.innerHTML.trim().replace(/<br>/g, '\n')}
|
||||
\`\`\`
|
||||
\n`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user