0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 07:02:38 +00:00

Remove Line-break

Remove the linbreak between the </dt> and the first <dd>
This commit is contained in:
David Bolack
2023-11-10 23:19:55 -06:00
parent 827fdd3cff
commit c78dcbfe05

View File

@@ -233,8 +233,7 @@ const definitionLists = {
renderer(token) {
return `<dl>${token.definitions.reduce((html, def)=>{
const dds = def.dd.map((s)=>`<dd>${this.parser.parseInline(s)}</dd>`).join('\n');
return `${html}<dt>${this.parser.parseInline(def.dt)}</dt>
${dds}`;
return `${html}<dt>${this.parser.parseInline(def.dt)}</dt>${dds}`;
}, '')}</dl>`;
}
};