mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
vjudge: codeforces: support katex for problems in old contests (#846)
This commit is contained in:
1 parent
41a949348b
commit
143bac4baa
1 file changed
+4
-4
@@ -216,19 +216,19 @@ export default class CodeforcesProvider extends BasicFetcher implements IBasicPr
|
|||||||
difficulty: getDifficulty(tag),
|
difficulty: getDifficulty(tag),
|
||||||
content: buildContent([
|
content: buildContent([
|
||||||
{
|
{
|
||||||
type: 'Text', sectionTitle: 'Description', subType: 'markdown', text: description,
|
type: 'Text', sectionTitle: 'Description', subType: 'markdown', text: description.replace(/tex-span/g, 'katex'),
|
||||||
},
|
},
|
||||||
...input ? [{
|
...input ? [{
|
||||||
type: 'Text', sectionTitle: 'Input', subType: 'markdown', text: input,
|
type: 'Text', sectionTitle: 'Input', subType: 'markdown', text: input.replace(/tex-span/g, 'katex'),
|
||||||
}] : [],
|
}] : [],
|
||||||
...output ? [{
|
...output ? [{
|
||||||
type: 'Text', sectionTitle: 'Output', subType: 'markdown', text: output,
|
type: 'Text', sectionTitle: 'Output', subType: 'markdown', text: output.replace(/tex-span/g, 'katex'),
|
||||||
}] : [],
|
}] : [],
|
||||||
...inputs.length ? [{
|
...inputs.length ? [{
|
||||||
type: 'Plain', text: [...inputs, ...outputs].join('\n'),
|
type: 'Plain', text: [...inputs, ...outputs].join('\n'),
|
||||||
}] : [] as any,
|
}] : [] as any,
|
||||||
...note ? [{
|
...note ? [{
|
||||||
type: 'Text', sectionTitle: 'Note', subType: 'markdown', text: note,
|
type: 'Text', sectionTitle: 'Note', subType: 'markdown', text: note.replace(/tex-span/g, 'katex'),
|
||||||
}] : [],
|
}] : [],
|
||||||
]),
|
]),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user