Comments (3)
I can't reproduce that.
What I see:
-
Markdown doc open - preview pane closed
-
ctrl-n to open new editor
-
Editor opens with preview pane
-
Paste text
-
Text displays
-
Both editor and preview pane stay exactly the same
from markdownmonster.
Ok - so I figured out the issue here which is a little more complicated and involves actually two bugs:
-
The previous preview state is ignored and MM tries to refresh the preview when a new document is created
This results in a new preview window being created which is what I saw. However, the new preview is not correctly attached to the editor, so any changes in the edit window actually fail. -
When pasting the Preview Mode is explicitly enabled
This results in a different problem - when the preview is not already visible, it sets the preview visible flag, but it's too late in the cycle to actually render. I think this is what you see: An empty preview pane.
Two fixes were made:
-
Only refresh the preview browser (and other related preview stuff) when the preview is actually visible when creating a new document
-
Only disable the preview if pasting a non-markdown document. For Markdown docs, respect the active preview visibility.
The final behavior is this:
- When you add a Markdown document the preview visibility is respected (syntax by default is markdown)
- Pasting into an empty doc only changes the preview status to invisible if non-markdown content is posted and the syntax changes to non-markdown
I think this fixes a long standing issue I've been trying to pinpoint but never figured out why it occurred, so thank you for that. I think this also caused some inconsistencies in the preview browser which show up in my logs.
from markdownmonster.
Fix in 3.2.17
from markdownmonster.
Related Issues (20)
- Can open file multiple times HOT 5
- FB refresh icon shows selected when unselecting FB sync HOT 1
- Have a way to keep read-only files open in tabs (pin?) HOT 2
- Regression: mouse drag errors? HOT 1
- Different context menu after first opening MM HOT 1
- Renaminng renames wrong file HOT 2
- Problems with HTML preview HOT 2
- Feature Request: Improve Embed Link dialog (`Ctrl+K`) when clipboard contains HTML link HOT 7
- Already solved... HOT 1
- Preview window always opens HOT 4
- Inconsistency in alert colors between the Github and Github Dark themes. HOT 8
- Error in UI HOT 1
- AI Feature: AI Request Failed invalid uri HOT 2
- Prevent empty copy/cut from overwriting paste buffer HOT 2
- Renaming file opens empty file and empty bak files HOT 1
- It is very frustrating that every time you start `MM` and exit `MM`, `MM` initializes the settings file causing user settings to be lost. HOT 7
- Unable to paste image from clipboard HOT 3
- Feature Request: Add Copy Image to Clipboard for Mermaid diagrams HOT 5
- [Feature Request] Option to Hide Hidden Files and Folders in the Folder Browser Sidebar HOT 5
- Markdown Preview Error when Pandoc Selected as Parser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdownmonster.