MCPcopy Index your code
hub / github.com/panphora/overtype / parseBold

Method parseBold

src/parser.js:181–185  ·  view source on GitHub ↗

* Parse bold text * @param {string} html - HTML with potential bold markdown * @returns {string} HTML with bold styling

(html)

Source from the content-addressed store, hash-verified

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

Callers 2

parseInlineElementsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected