-
Notifications
You must be signed in to change notification settings - Fork 349
Save as HTML and Copy as HTML stopped working in 1.32.0 with files that have fenced code blocksΒ #552
Description
Edits by @rsese to add new details based on #552 (comment)
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=β&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
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 just after the update to v. 1.32.2 1.32.0 and the restart of Atom. atom/atom#17985 perhaps related?
Steps to Reproduce
- Open a Markdown file, or create new - the file must have a fenced code block e.g.
# Hello World ``` console.log(); ```
- Ctrl + Shift + M
- Ctrl + Shift + S (or Ctrl + C for "Copy As HTML")
- Select file
- Click Save
Expected behavior:
HTML file get saved and opened in new pane in Atom.
ctrlc-c or right-clicking the preview pane and selecting Copy As HTML will copy the preview in HTML for pasting.
Actual behavior:
Files is not saved nor opened. The save as dialog opens but nothing is saved.
ctrlc-c or right-clicking the preview pane and selecting Copy As HTML doesn't do anything.
Reproduces how often:
Every time if the file has a fenced code block
Versions
Atom : 1.32.2
Electron: 2.0.9
Chrome : 61.0.3163.100
Node : 8.9.3
Additional Information
Last worked in 1.31.2 so maybe atom/atom#17985 is related?
This issue appears to be the exact replica of this old issue : #524