mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09: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),
|
||||
content: buildContent([
|
||||
{
|
||||
type: 'Text', sectionTitle: 'Description', subType: 'markdown', text: description,
|
||||
type: 'Text', sectionTitle: 'Description', subType: 'markdown', text: description.replace(/tex-span/g, 'katex'),
|
||||
},
|
||||
...input ? [{
|
||||
type: 'Text', sectionTitle: 'Input', subType: 'markdown', text: input,
|
||||
type: 'Text', sectionTitle: 'Input', subType: 'markdown', text: input.replace(/tex-span/g, 'katex'),
|
||||
}] : [],
|
||||
...output ? [{
|
||||
type: 'Text', sectionTitle: 'Output', subType: 'markdown', text: output,
|
||||
type: 'Text', sectionTitle: 'Output', subType: 'markdown', text: output.replace(/tex-span/g, 'katex'),
|
||||
}] : [],
|
||||
...inputs.length ? [{
|
||||
type: 'Plain', text: [...inputs, ...outputs].join('\n'),
|
||||
}] : [] as any,
|
||||
...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