https://github.com/prettier/prettier/issues/19518 - 2nd pass

Created Diff never expires
0 removals
22 lines
2 additions
22 lines
const t = html`
const t = html`
<ol>
<ol>
${items.map(
${items.map(
(entry) => html`
(entry) => html`
<li>
<li>
${
${
entry.children
entry.children
? html`
? html`
<ol>
<ol>
${entry.children.map(
${entry.children.map(
(child) => html`<li>${child.title}</li>`,
(child) => html`<li>${child.title}</li>`,
)}
)}
</ol>
</ol>
`
`
: entry.title
: entry.title
}
}
</li>
</li>
`,
`,
)}
)}
</ol>
</ol>
`;
`;