export class AutoClosingProcessor { private regex = /<(\s*?([\w]*)[^>]*?)\/(?<=\/)>/gm ; process ( markdown ) { return this . transformBlock ( markdown ) ; } transformBlock ( markdown ) { markdown = markdown . replaceAll ( this . regex , `<$1></$2>` ) ; return markdown ; } }