You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
catscarlet
changed the title
[Markdown Preview] Save as HTML and Copy as HTML stopped working with files that have fenced code blocks since Atom 1.32.0
[Markdown Preview] Save as HTML and Copy as HTML stopped working with file that has fenced code blocks since Atom 1.32.0
Jul 1, 2024
The underlying problem here is that Pulsar does some magic for each embedded code block in the Markdown. That magic needs to go async. A large Promise.all is set up to aggregate all the promises over the entire file, but some of them never resolve. The ones that don't resolve seem to be the TextMate-style grammars — in my experiments, plain text and CoffeeScript didn't resolve.
Thanks in advance for your bug report!
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?
Expected result:
Actual result:
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
The text was updated successfully, but these errors were encountered: