* Parse bold text * @param {string} html - HTML with potential bold markdown * @returns {string} HTML with bold styling
(html)
| 179 | * @returns {string} HTML with bold styling |
| 180 | */ |
| 181 | static parseBold(html) { |
| 182 | html = html.replace(/\*\*(.+?)\*\*/g, '<strong><span class="syntax-marker">**</span>$1<span class="syntax-marker">**</span></strong>'); |
| 183 | html = html.replace(/__(.+?)__/g, '<strong><span class="syntax-marker">__</span>$1<span class="syntax-marker">__</span></strong>'); |
| 184 | return html; |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * Parse italic text |
no outgoing calls
no test coverage detected