Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Bug: Editor Crashes

Open cobbspur opened this issue 11 years ago • 3 comments

Issue Summary

The editor crashes if you have an image with a relative url in markdown form followed on the same line by a URL in brackets.

How to Reproduce

Go to editor Add ![]() to bring up an image dropzone and add image of your choice - some cats perhaps... After this - on the same line add a link to something in brackets

Like this:

The editor crashes when you add the closing parenthesis

This is a bug because... although the markup may not be valid it should not be so easy to completely break the editor and if a post is imported you cannot edit the post without directly editing the database.

Technical details

  • Ghost Version: master - latest commit: c8dd095
  • Client OS: Mac and windows 7x64

cobbspur avatar Sep 09 '15 16:09 cobbspur

This is a problem with the regexp that showdown-ghost uses, @ErisDS are you going to change to showdownjs in the near future?

lcamacho avatar Oct 01 '15 17:10 lcamacho

Yep, working on it

ErisDS avatar Oct 08 '15 19:10 ErisDS

Hi, @ErisDS Same issue with me but after add a carriage return it's working fine. It happens only if we continue without any carriage return.

narayand4 avatar Feb 03 '16 09:02 narayand4