core: add user import hooks

This commit is contained in:
undefined committed 2024-10-24 01:27:54 +08:00
1 parent 21c069d998
commit 90f4cdc569
3 files changed
+10 -5

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ class FpsProblemImportHandler extends Handler {
samples: p.sample_input?.map((input, i) => [input, p.sample_output[i]]),
hint: p.hint?.[0],
source: p.source?.join(' '),
}, 'html').replace(/<math xm<x>lns=/g, '<math xmlns=').replace(/\[\/?md]/g, '');
}, 'html', (s) => this.translate(s)).replace(/<math xm<x>lns=/g, '<math xmlns=').replace(/\[\/?md]/g, '');
const config: ProblemConfigFile = {
time: p.time_limit[0]._ + p.time_limit[0].$.unit,
memory: p.memory_limit[0]._ + p.memory_limit[0].$.unit,