hackmd-io-issues icon indicating copy to clipboard operation
hackmd-io-issues copied to clipboard

Template Previews Failing to Load in iFrame

Open ggoodwin opened this issue 2 years ago • 0 comments

Is this a hackmd.io issue?

  • [x] Yes, the bug happens on https://hackmd.io
  • [ ] No. If it's a self-hosted CodiMD instance, please fire up the issue in the repo of CodiMD: https://github.com/hackmdio/codimd

What's the problem

When creating a new note using a template, the preview iframe displays an infinite spinning loader. Clicking Use this template still works and creates using the template, but no preview is available despite the download API route returning the correct template Markdown.

Current behaviour

Template previews are not displaying, attempted in Google Chrome, Microsoft Edge, Mozilla Firefox, and Brave.

Visual Example

API Call

API Response

Provide steps to reproduce:

  1. Go to Overview
  2. Click on the 3 dots to the right of New note
  3. Choose a template from the list.
  4. See the spinner spin forever.

Expected behaviour

Template previews should be viewable.

Environment

I use HackMD on:

Desktop

  • OS: [Windows 11]
  • Browser: [Chrome]
  • Browser Version: [116.0.5845.188]

ggoodwin avatar Sep 14 '23 15:09 ggoodwin