export class IconsProcessor { private regex = /:(fas|far|fal|fad|fab)_([\w]+):/g ; process ( markdown ) { return this . transformIconShortcode ( markdown ) ; } transformIconShortcode ( markdown ) { markdown = markdown . replaceAll ( this . regex , `![]($1 fa-$2)` ) ; return markdown ; } }