Skip to content

smart quotes cause strange behavior in markdown stacks

problematic characters:

  • multi-byte characters like:
    • smart quotes “smart”
    • smart dashes like —
  • grapheme clusters like:
    • 🍻
  • ZWJ composed characters like:
    • 🧑🏾‍🚒

are used in MarkDown stacks the results get weird. primarily it will, for each of these characters, count them as 1 character. if the cluster is 5 characters then 4 characters will be trimmed from the end of the markdown text.

over the course of a long text stack ever use of a smart quote will trim off one character — so a lot can get trimmed