(matcher)
| 19 | }; |
| 20 | |
| 21 | const topline = (matcher) => (text, position) => { |
| 22 | if (position > 0 && text.charAt(position - 1) !== '\n') { |
| 23 | return null; |
| 24 | } |
| 25 | |
| 26 | return matcher(text, position); |
| 27 | }; |
| 28 | |
| 29 | const deep = (type, callback) => (match, _, position) => { |
| 30 | const [result, content] = match; |