(src)
| 64 | name: 'underline', |
| 65 | level: 'block', |
| 66 | tokenizer(src) { |
| 67 | const rule = /^:([^\n]*)(?:\n|$)/; |
| 68 | const match = rule.exec(src); |
| 69 | if (match) { |
| 70 | return { |
| 71 | type: 'underline', |
| 72 | raw: match[0], // This is the text that you want your token to consume from the source |
| 73 | text: match[1].trim(), // You can add additional properties to your tokens to pass along to the renderer |
| 74 | }; |
| 75 | } |
| 76 | }, |
| 77 | renderer(token) { |
| 78 | return `<u>${token.text}</u>\n`; |
| 79 | }, |
nothing calls this directly
no test coverage detected
searching dependent graphs…