mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
Many emojis are 2+ unicode bytes long. The \u tag which allows searching for punctuation also counts emojis as single chars. Slicing the strings into an array restores the correct character count.