import { kebabCase } from 'scule' const SELF_CLOSING_TAG_REGEX = /<([^\s>]+)\/>/g const OPEN_TAG_REGEX = /<([^\s>([\s\S]*?)/))) { const kebabContent = content[1] .replaceAll(SELF_CLOSING_TAG_REGEX, (substring, tag) => { return substring.replace('/>', `>`) }) .replaceAll(OPEN_TAG_REGEX, (substring) => { return `<${kebabCase(substring.substring(1).trim())}` }) .replaceAll(CLOSE_TAG_REGEX, (substring) => { return `') && source.includes('')) { return ``) .replace( ``, ``) } if (source.includes('')) { return `\n`, ) } if (source.includes('')) { return `\n`, ) } return ( `` + `` + `` ) }