atom / markdown-preview

📝 Markdown preview in Atom
MIT License
1.23k stars 358 forks source link

ctrl-shift-m not working - how to view rendered md? #504

Closed magick93 closed 6 years ago

magick93 commented 7 years ago

Prerequisites

Description

I am unable to view rendered markdown.

Steps to Reproduce

  1. Install markdown-preview
  2. open .md file
  3. hit ctrl-shift-m

Expected behavior: [What you expect to happen]

I expect to see the rendered markdown

Actual behavior: [What actually happens] Nothing

Reproduces how often: [What percentage of the time does it reproduce?] Everytime

Versions

tom --version Atom : 1.15.0 Electron: 1.3.13 Chrome : 52.0.2743.82 Node : 6.5.0

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

rsese commented 6 years ago

Can you share a screenshot of what you see with ctrl-shift-m with the keybinding resolver enabled?

http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-your-keybindings

magick93 commented 6 years ago

Hi @rsese , sure here it is:

selection_081

Ben3eeE commented 6 years ago

Atom : 1.15.0

Can you try upgrading to the latest version and see if that fixes the issue? Atom 1.15 is very old.

Also please try in safe mode atom --safe. From your keybinding-resolver it seems that you have markdown-preview-plus installed. So it might be an issue with that package and not with markdown-preview.

justintien commented 6 years ago

I also got this issue... headache

Ben3eeE commented 6 years ago

Thank you for your issue!

We haven't gotten a response to our questions in our comment https://github.com/atom/markdown-preview/issues/504#issuecomment-335440118. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.


@justintien If you can reproduce using the latest version of Atom in safe mode atom --safe then please open a new issue and completely fill out the required issue template. Also include a screenshot of the keybinding-resolver when you press ctrl-shift-m in safe mode and we can take a look.

justintien commented 6 years ago

@Ben3eeE Sorry for late response, I already resolved.

The reason is emmet conflict ctrl-shift-m and override it.

I modify keybindings, added

'.editor:not(.mini)':
    'ctrl-shift-M': 'markdown-preview:toggle'

it's work fine.

tterb commented 6 years ago

FWIW the command palette (Ctrl-Shift-P) can also be used to open the markdown preview in the event of the default keybinding getting overridden by another package.

vincentntang commented 6 years ago

Emmet overrode mine as well

This is how I debugged it

  1. Press CTRL+. to see what keyboard commands do in console
  2. Press CTRL+SHIFT+M to see which app is overriding. In my case, it was emmet

Once you find it

  1. CTRL+P
  2. Type "keymap" press enter

Put this below. I used markdown-preview-plus, which also comes with LaTeX math support as well

'.editor:not(.mini)':
    'ctrl-shift-M': 'markdown-preview-plus:toggle'

Save and it should work

lmbailey1974 commented 5 years ago

I have been trying for 3 hours to render MathML in 3 different HTML previewers. It's not in MathJax, or Latex (although, I wish it was). It's in MathML. For example, <math xmlns="http://www.w3.org/1998/Math/MathML"><msqrt><mn>36</mn></msqrt></math> just shows up as "36". and <math xmlns="http://www.w3.org/1998/Math/MathML"><msup><mi>z</mi><mn>2</mn></msup><mo>&#xA0;</mo><mo>=</mo><mo>&#xA0;</mo><mn>36</mn></math> shows up as z2=36

I am a few months old at html and ATOM, so I may be asking an incredibly basic question, but do I need to add some "stylesheet" or script to make any of the html preview packages render the math in my document?

50Wliu commented 5 years ago

@lmbailey1974 you'll probably have more luck asking on Discuss, the official Atom message board.

latimeks commented 5 years ago

I had the same issue, to resolve it I did the following:

I have Atom v.1.35