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

Method parseHorizontalRule

src/parser.js:100–105  ·  view source on GitHub ↗

* Parse horizontal rules * @param {string} html - HTML line to parse * @returns {string|null} Parsed horizontal rule or null

(html)

Source from the content-addressed store, hash-verified

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

Callers 1

parseLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected