Skip to content

[Markdown Preview] Save as HTML and Copy as HTML stopped working with file that has fenced code blocks since Atom 1.32.0 #1044

@catscarlet

Description

@catscarlet

Thanks in advance for your bug report!

  • Have you reproduced issue in safe mode?
  • Have you used the debugging guide to try to resolve the issue?
  • Have you checked our FAQs to make sure your question isn't answered there?
  • Have you checked to make sure your issue does not already exist?
  • Have you checked you are on the latest release of Pulsar?

What happened?

This is a good-old-classic bug since 2018. See this: atom/markdown-preview#552

The "Save As HTML" and "Copy As HTML" functionalities in the MarkDown preview doesn't work anymore if your file has a fenced code block.

It seems that the problem began since 2018 v1.32.0 of Atom, and it is still there in Pulsar nowadays.

Pulsar version

1.118.0

Which OS does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

OS details

Linux Mint 20.3 (based on Ubuntu 20.04)

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

  1. Open a Markdown file, or create new - the file must have a fenced code block e.g.
      # Hello World
      
      ```
      console.log();
      ```
  1. Ctrl + Shift + M to open the Markdown Preview
  2. Ctrl + Shift + S to save Save as HTML (or Ctrl + Ins for "Copy As HTML")
  3. Save the HTML (or Paste the HTML to somewhere you like)
  4. Check the result

Expected result:

  • If you choose Save the HTML, a new HTML file is saved.
  • If you choose Copy As HTML, a HTML content will be in/replace clipboard, and you can paste it in anywhere you want.

Actual result:

  • If you choose Save the HTML, nothing will happen. No new save file will be created.
  • If you choose Copy As HTML, nothing will be in/replace clipboard, thus nothing expecting will be pasted.

Additional Information:

This is a very old bug since Atom 1.32.0 and they did nothing about it since 2018.

The OS and the CPU arch do not matter.

You can get all information on atom/markdown-preview#552

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions