Published unlisted
Edited
May 24, 2019
Insert cell
{
const array1 = [tex`A=1`, tex`A=2`];
const array2 = [tex`A=1`, tex`A=2`];
const between = Array(array2.length - 1).fill("\n- ");
const array3 = [tex`A=1`, tex`A=2`];
const array4 = [tex`A=1`, tex`A=2`];
const array5 = [tex`A=1`, tex`A=2`];

return md`# Breaking Markdown

Not broken:
- ${array1[0]}
- ${array1[1]}

Not broken:
${ md(["- ", ...between, ""], ...array2) }

Not broken:
<ul>
${array3.map(a => html`<li>${a}`)}
</ul>

Broken
${array4.map(a => `- ${a}\n`)}

Broken
${array5.map(a => `- ${a}`).join('\n')}
`;
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more