vjudge: handle br tag

This commit is contained in:
undefined committed 2022-10-09 13:19:13 +08:00
1 parent 0593d4d86a
commit ebad34a426
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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`;
}