mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 12:38:21 -05:00
When we do replaceText in the ProseMirror TextManipulation lib, we are creating a regex for the provided markdown. However this markdown can have things like * (which is valid for a markdown list), which also doubles as a regex symbol. We can escape the markdown provided to the regex first to fix the issue.