atom / markdown-preview

πŸ“ Markdown preview in Atom
MIT License
1.23k stars 358 forks source link

Previewing Markdown Failed #579

Closed jhongiv closed 3 years ago

jhongiv commented 4 years ago

Prerequisites

Description

Steps to Reproduce

Expected behavior:

Actual behavior:

Reproduces how often: always at first time preview. Sometimes second time preview is ok

Versions

Atom 1.47.0 markdown-preview 0.160.2

Additional Information

Previewing Markdown Failed r.trim is not a function

angela-d commented 3 years ago

I don't want to use plugins

One of the best parts about Atom is the amount of customizations you can get with plugins! The themes and linters are excellent.

rickalex21 commented 3 years ago

One of the best parts about Atom is the amount of customizations you can get with plugins! The themes and linters are excellent.

Really ? I did not look much but the market in atom looked very limited compared to visual studio code. They don't even have a vim plugin like visual studio code does. I mostly use vim, occasionally I need to use vscode for something like markdown. Vscode is very active and constantly improving.

angela-d commented 3 years ago

VS Code also has Microsoft's telemetry strings attached, so it depends on what's important to you.

If you prefer the plugin environment of VS Code, this fork has the telemetry stuff removed: https://vscodium.com/

For my personal use case, everything I've needed has been available in Atom, so far; and I prefer not to be monitored by a code editor.

gosukiwi commented 3 years ago

One of the best parts about Atom is the amount of customizations you can get with plugins! The themes and linters are excellent.

Really ? I did not look much but the market in atom looked very limited compared to visual studio code. They don't even have a vim plugin like visual studio code does. I mostly use vim, occasionally I need to use vscode for something like markdown. Vscode is very active and constantly improving.

There's vim-mode-plus for Atom.

rickalex21 commented 3 years ago

@angela-d Very good point. Thanks.

@gosukiwi I will have to check that out. Thanks.

Neustradamus commented 3 years ago

@jhongiv: Can you reopen this unsolved ticket?

BraperBlueSage commented 3 years ago

Confirmed : This bug has not been addressed. Atom 1.54.0 x64 : Macos 11.2.2

~/.atom/config.cson

  "markdown-preview":
    useGitHubStyle: true

Installing markdown-preview-plus > Markdown-preview-plus has disabled markdown-preview package.

This will allow Atom to correctly render markdown. But as wlwl2 mentioned, you must change the default configuration for fonts to be * - otherwise you will get a serifed font

ScottA38 commented 3 years ago

I'm not sure if this was already covered in other comments but I managed to circumvent this issue by toggling

break on single newline

anyboo commented 3 years ago

OS Version ProductName: Windows ProductVersion: 10.0.17763.194 BuildVersion: 17763

Atom Version Atom : 1.55.0

image

anyboo commented 3 years ago

I found that reinstall the markdown-preview will be ok. May be the bundle version was not work.

apm uninstall markdown-preview then apm install markdown-preview

dbubenheim commented 3 years ago

I solved the issue by disabling and enabling the plugin again in the settings dialog

atom-markdown-plugin

Fuse56 commented 3 years ago

This bug is still occurring in markdown-preview as of July 13th 2021. Why was this thread closed?

markdown_rtrim_bug

The only packages I'm using are:

  1. language-markdown
  2. markdown-writer
  3. markdown-preview on Windows 10 Atom 1.48.0 x64
Neustradamus commented 3 years ago

I think that WE must to open a new ticket!

chrishuan9 commented 3 years ago

I was suffering from the same r.trim is not a function error. I trashed my installation of atom including settings and setup a new installation. So far I haven't seen this error come up again.

Fuse56 commented 3 years ago

Thanks, Chris. That didn't work for me initially, but I may try again.

wlwl2 commented 3 years ago

@Fuse56 I've recently fixed this issue on Windows 10. Changing my user folder to have no spaces (e.g. C:\Users\william), and then reformatting my computer and reinstalling atom resolved this issue.

frederik-b commented 2 years ago

still an unsolved issue toggling it open twice solves it inital opening of the preview still has this bug