Edits by @rsese to add new details based on #552 (comment)
Prerequisites
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