mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add user import hooks
This commit is contained in:
3 files changed
+10
-5
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user