* Parse horizontal rules * @param {string} html - HTML line to parse * @returns {string|null} Parsed horizontal rule or null
(html)
| 98 | * @returns {string|null} Parsed horizontal rule or null |
| 99 | */ |
| 100 | static parseHorizontalRule(html) { |
| 101 | if (html.match(/^(-{3,}|\*{3,}|_{3,})$/)) { |
| 102 | return `<div><span class="hr-marker">${html}</span></div>`; |
| 103 | } |
| 104 | return null; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Parse blockquotes |