(md)
| 198 | } |
| 199 | |
| 200 | function parseSteps(md) { |
| 201 | if (!md) return []; |
| 202 | const checklist = parseChecklist(md); |
| 203 | return checklist.length ? checklist : parseLooseSteps(md); |
| 204 | } |
| 205 | |
| 206 | // Return the steps under the first heading matching `headingRe`, up to the next |
| 207 | // heading, or null if there is no such section. Used to scope the validation |
no test coverage detected