Add space between Q&A accordion marker and question

This commit is contained in:
Helen Chong 2024-05-07 10:00:08 +08:00
parent 7c99ec4ae6
commit d059c8ff30
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ module.exports = function (eleventyConfig) {
const questionMarkup = markdownLibrary.renderInline(question); const questionMarkup = markdownLibrary.renderInline(question);
const answerMarkup = markdownLibrary.render(answer); const answerMarkup = markdownLibrary.render(answer);
return `<details class="qna-accordion"> return `<details class="qna-accordion">
<summary class="qna-accordion__question">${questionMarkup}</summary> <summary class="qna-accordion__question">
${questionMarkup}
</summary>
<div class="qna-accordion__answer">${answerMarkup}</div> <div class="qna-accordion__answer">${answerMarkup}</div>
</details>`; </details>`;
}); });