core: buildContent: fix html samples

This commit is contained in:
undefined committed 2023-05-06 21:05:36 +08:00
1 parent c37dfd6df1
commit b48fb3dcc3
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ export function buildContent(source: ProblemSource | ContentNode[], type: 'markd
`</code></pre><pre><code class="language-output${i + 1}">`,
sample[1],
'</code></pre>',
].join('\n')),
].join('')),
...source.hint ? [`<h2>${_('Hint')}</h2>`, source.hint] : [],
...source.source ? [`<h2>${_('Source')}</h2>`, source.source] : [],
].join('\n')