fix: code block newline (#43600)
This commit is contained in:
committed by
GitHub
parent
a6c35c1b80
commit
02417bec07
@ -4,7 +4,7 @@ const { insertErms } = require('./insert-erms');
|
|||||||
function getCodeBlock(label, content) {
|
function getCodeBlock(label, content) {
|
||||||
return `\`\`\`${label}
|
return `\`\`\`${label}
|
||||||
${typeof content !== 'undefined' ? content : ''}
|
${typeof content !== 'undefined' ? content : ''}
|
||||||
\`\`\``;
|
\`\`\`\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Builds a section
|
// Builds a section
|
||||||
@ -72,7 +72,6 @@ ${stepDescription}
|
|||||||
Test 1
|
Test 1
|
||||||
|
|
||||||
${getCodeBlock('js')}
|
${getCodeBlock('js')}
|
||||||
|
|
||||||
# --seed--` +
|
# --seed--` +
|
||||||
seedChallengeSection +
|
seedChallengeSection +
|
||||||
seedHeadSection +
|
seedHeadSection +
|
||||||
|
@ -31,7 +31,7 @@ Test 1
|
|||||||
--fcc-editable-region--
|
--fcc-editable-region--
|
||||||
|
|
||||||
--fcc-editable-region--
|
--fcc-editable-region--
|
||||||
\`\`\``;
|
\`\`\`\n`;
|
||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
challengeId: '60d4ebe4801158d1abe1b18f',
|
challengeId: '60d4ebe4801158d1abe1b18f',
|
||||||
|
Reference in New Issue
Block a user