Use bold, italic and cmd --flag.
| K | V |
|---|---|
| a | 1 |
line1\nline2' +
'link & entity
' ); const lines = md.split('\n'); assert.ok(lines.includes('Use **bold**, *italic* and `cmd --flag`.')); assert.ok(lines.includes('- one') && lines.includes('- two')); assert.ok(lines.includes('1. first') && lines.includes('2. second')); assert.ok(lines.includes('| K | V |') && lines.includes('| a | 1 |')); const fence = lines.indexOf('```'); assert.deepEqual(lines.slice(fence, fence + 4), ['```', 'line1', 'line2', '```']); assert.ok(lines.includes('[link](https://x.example) & entity')); }); test('preview mode limits the AST to the first N steps', (t) => { const root = makeTmpDir('preview'); t.after(() => rmrf(root)); const { store, guide } = buildFixtureGuide(path.join(root, 'data')); const ast = buildRenderAst(store, guide.guideId, { maxSteps: 2 }); assert.equal(ast.steps.length, 2); assert.deepEqual(ast.steps.map((s) => s.number), ['1', '1.1']); });