mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix buildContent(type=markdown)
This commit is contained in:
1 parent
d401b7c920
commit
52a0666b31
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.15.12",
|
||||
"version": "3.15.13",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -60,7 +60,7 @@ export function buildContent(source: ProblemSource | ContentNode[], type: 'markd
|
||||
: [
|
||||
...source.description ? [`## ${_('Description')}`, source.description] : [],
|
||||
...source.input ? [`## ${_('Input Format')}`, source.input] : [],
|
||||
...source.output ? [`## '${_('Output Format')}`, source.output] : [],
|
||||
...source.output ? [`## ${_('Output Format')}`, source.output] : [],
|
||||
...(source.samples).map((sample, i) => [
|
||||
`\`\`\`input${i + 1}`,
|
||||
sample[0],
|
||||
|
||||
Reference in new issue
Block a user