${fragment.title}
${fragment.description}
${fragment.example?`
Example
${fragment.example}`:''}
${fragment.samples.length?`
Sample code
${fragment.samples.join('')}`:''}
${fragment.modifiers.length?
`
Modifiers
${fragment.modifiers.map(m => `${m.title}
${m.description}${m.example?`Example
${m.example}`:''}${m.samples.length?`Sample code
${m.samples.join('')}`:''}`).join('
')}`:''}
${fragment.dos.length||fragment.donts.length?
`
Best practices
${[fragment.dos.map(d => `
`).join('
'),fragment.donts.map(d => `
`).join('
')].join('')}
`
:''}
${fragment.notes.length?`
Notes
${fragment.notes.map(n => `- ${n}
`).join('')}
`:''}
${fragment.customization.length?`
Customization
${fragment.customization.map(s => `- ${s}
`).join('')}
`:''}
`;
return fragmentHtml;
}