mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix buildContent
This commit is contained in:
1 parent
1102496b91
commit
577e100ca6
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.28.46",
|
"version": "2.28.47",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export function buildContent(source: ProblemSource | ContentNode[], type: 'markd
|
|||||||
node.text,
|
node.text,
|
||||||
].join('\n')).join('\n')
|
].join('\n')).join('\n')
|
||||||
: source.map((node) => [
|
: source.map((node) => [
|
||||||
node.type !== 'Plain' ? `## ${node.sectionTitle}` : '',
|
node.type !== 'Plain' && (node.type !== 'Sample' || !cnt) ? `## ${node.sectionTitle}` : '',
|
||||||
...node.type === 'Sample'
|
...node.type === 'Sample'
|
||||||
? [
|
? [
|
||||||
'',
|
'',
|
||||||
|
|||||||
Reference in new issue
Block a user