(children, depth = 1)
| 57 | } |
| 58 | |
| 59 | function header(children, depth = 1) { |
| 60 | return { |
| 61 | type: 'header', |
| 62 | children, |
| 63 | depth, |
| 64 | source: `${'#'.repeat(depth)} ${source(children)}`, |
| 65 | }; |
| 66 | } |
| 67 | |
| 68 | function list(children, { ordered = false, prefix = '-' } = {}) { |
| 69 | return { |