A bug has been reported where the preview feature in Discourse does not work with Microsoft Edge. MikkoH first reported the issue, providing repro steps and an error message from the console. codinghorror was able to reproduce the issue on the latest version of Edge.
After investigation, joffreyjaffeux found the root cause to be related to Edge’s Regexp support, which causes a line of code in Discourse to fail. A polyfill fix has been proposed in PR #7460, courtesy of zogstrip. This fix is expected to prevent similar issues in other parts of the app.
I was about to write a fix for this case, but @zogstrip found a polyfill, which is probably way better as it will prevent this from happening in any other place in the app.