(rows: number)
| 95 | ]); |
| 96 | |
| 97 | export const generateMarkdownMockData = (rows: number) => |
| 98 | unpackIntoColumnsAndData([ |
| 99 | { |
| 100 | id: 'markdown-headers', |
| 101 | name: ['', 'Headers'], |
| 102 | presentation: 'markdown', |
| 103 | data: gendata(i => '#'.repeat(i % 6) + ' row ' + i, rows) |
| 104 | }, |
| 105 | { |
| 106 | id: 'markdown-italics', |
| 107 | name: ['Emphasis', 'Italics'], |
| 108 | presentation: 'markdown', |
| 109 | data: gendata(i => (i % 2 ? '*' + i + '*' : '_' + i + '_'), rows) |
| 110 | }, |
| 111 | { |
| 112 | id: 'markdown-links', |
| 113 | name: ['', 'Links'], |
| 114 | presentation: 'markdown', |
| 115 | data: gendata( |
| 116 | i => |
| 117 | '[Learn about ' + |
| 118 | i + |
| 119 | '](http://en.wikipedia.org/wiki/' + |
| 120 | i + |
| 121 | ')', |
| 122 | rows |
| 123 | ) |
| 124 | }, |
| 125 | { |
| 126 | id: 'markdown-lists', |
| 127 | name: ['', 'Lists'], |
| 128 | presentation: 'markdown', |
| 129 | data: gendata( |
| 130 | i => |
| 131 | [ |
| 132 | '1. Row number ' + i, |
| 133 | ' - subitem ' + i, |
| 134 | ' - subsubitem ' + i, |
| 135 | ' - subitem two ' + i, |
| 136 | '2. Next row ' + (i + 1) |
| 137 | ].join('\n'), |
| 138 | rows |
| 139 | ) |
| 140 | }, |
| 141 | { |
| 142 | id: 'markdown-tables', |
| 143 | name: ['', 'Tables'], |
| 144 | presentation: 'markdown', |
| 145 | data: gendata( |
| 146 | i => |
| 147 | ['Current | Next', '--- | ---', i + ' | ' + (i + 1)].join( |
| 148 | '\n' |
| 149 | ), |
| 150 | rows |
| 151 | ) |
| 152 | }, |
| 153 | { |
| 154 | id: 'markdown-quotes', |
nothing calls this directly
no test coverage detected
searching dependent graphs…