Open wooorm opened 2 years ago
https://github.com/syntax-tree/hast-util-find-and-replace makes it easier to find patterns and replace them with nodes. And to ignore patterns in certain elements (style, script?)
Hello, I just create a new rehype-twemoji with that library: https://github.com/nekochan0122/rehype-twemoji
https://github.com/syntax-tree/hast-util-find-and-replace makes it easier to find patterns and replace them with nodes. And to ignore patterns in certain elements (style, script?)