core: fix buildContent(type=markdown)

This commit is contained in:
undefined committed 2022-08-17 00:32:03 +08:00
1 parent d401b7c920
commit 52a0666b31
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "3.15.12", "version": "3.15.13",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "src/loader", "main": "src/loader",
"module": "src/loader", "module": "src/loader",
+1 -1
View File
@@ -60,7 +60,7 @@ export function buildContent(source: ProblemSource | ContentNode[], type: 'markd
: [ : [
...source.description ? [`## ${_('Description')}`, source.description] : [], ...source.description ? [`## ${_('Description')}`, source.description] : [],
...source.input ? [`## ${_('Input Format')}`, source.input] : [], ...source.input ? [`## ${_('Input Format')}`, source.input] : [],
...source.output ? [`## '${_('Output Format')}`, source.output] : [], ...source.output ? [`## ${_('Output Format')}`, source.output] : [],
...(source.samples).map((sample, i) => [ ...(source.samples).map((sample, i) => [
`\`\`\`input${i + 1}`, `\`\`\`input${i + 1}`,
sample[0], sample[0],