markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

the chrome in ubuntu cannot open a local file, it only support downloading the file, what should I do?

Open DS-Liu opened this issue 4 years ago • 5 comments
trafficstars

DS-Liu avatar Nov 02 '21 11:11 DS-Liu

Check out the documentation https://github.com/simov/markdown-viewer#local-files you need these two settings enabled.

simov avatar Nov 02 '21 12:11 simov

I'v already enabled access to file URLs as shown in the screenshot bellow image

but as you can see, when I click the *.md file, it just show the download window instead of showing the test. image

The chrome is of version 95.0.4638.69 on ubuntu 20.04 LTS.

It can't open any file in this folder but it can open some other files in the subfolders. I'm a bit confused.

DS-Liu avatar Nov 02 '21 13:11 DS-Liu

Can you try this as well:

file-access

simov avatar Nov 02 '21 17:11 simov

  • Cannot toggle this option on ubuntu image

  • when I click it, it changes back to the following image

  • it behaves different from chrome on windows

DS-Liu avatar Nov 03 '21 01:11 DS-Liu

Since I have VS code installed, I could just use it to view local *.md files

DS-Liu avatar Nov 03 '21 01:11 DS-Liu