TryGhost / Ghost

Independent technology for modern publishing, memberships, subscriptions and newsletters.
https://ghost.org
MIT License
47.46k stars 10.35k forks source link

Inlined images are not inlined in the article #9360

Closed andreygrehov closed 6 years ago

andreygrehov commented 6 years ago

Issue Summary

I inline formulas as images. It works great in the editor's preview screen, but when I open post in the Preview mode (via the Preview link in the Post Settings), Ghost places all the inline images as separate elements.

This is how it looks in the Side-by-Side preview screen:

screen shot 2017-12-29 at 5 48 52 pm

And here is the same piece of content in the Preview mode:

screen shot 2017-12-29 at 5 49 39 pm
  1. Is it possible to explicitly tell Ghost that I want an image to be inlined?
  2. I suppose we don't want the behavior between Preview and Side-by-Side Preview be different.

Technical details:

This is a default DigitalOcean installation.

kevinansfield commented 6 years ago

Hey @andreygrehov 👋 This is a theming issue rather than a bug in Ghost, the behaviour between the preview and the fully rendered post will always be different because the rendered version behaviour is determined by your theme.

You will need to adjust the styles in your theme to work for your use case. If you need any help pop over to our Slack channel. I'm closing this as there's no bug and we don't offer support via Github.

andreygrehov commented 6 years ago

@kevinansfield gotcha. Makes sense. Thank you. I haven't made any changes to the default installation. That said, is casper a default Ghost theme or it's simply the way DigitalOcean pre-packed Ghost for its customers?

kevinansfield commented 6 years ago

@andreygrehov Casper is the default theme