core: buildContent: fix html samples

pull/569/head
undefined 1 year ago
parent c37dfd6df1
commit b48fb3dcc3
No known key found for this signature in database

@ -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')

Loading…
Cancel
Save