(str)
| 2 | import markdownIt from "markdown-it" |
| 3 | |
| 4 | function parseData(str) { |
| 5 | let tag = /^\s*(\w+)\s*?/.exec(str), args |
| 6 | if (!tag) return null |
| 7 | if (tag[0].length == str.length) { |
| 8 | args = [] |
| 9 | } else { |
| 10 | try { args = PJSON.parse("[" + str.slice(tag[0].length) + "]") } |
| 11 | catch(_) { return null } |
| 12 | } |
| 13 | return {tag: tag[1], args} |
| 14 | } |
| 15 | |
| 16 | function parseBlockMeta(state, startLine, endLine) { |
| 17 | let pos = state.bMarks[startLine] + state.tShift[startLine] |
no test coverage detected