benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.69k stars 2.72k forks source link

Gist, Unable to access URL #741

Open defeo opened 9 years ago

defeo commented 9 years ago

Hello,

Calling the viewer with #!url= parameter and a gist url fails with a message "Unable to access URL". See e.g.,

https://stackedit.io/viewer#!url=https://gist.githubusercontent.com/defeo/ef90291aa25c6da44988/raw/ss-graphs https://stackedit.io/viewer#!url=https://gist.githubusercontent.com/defeo/817cf3fd2b2bc2673fe1/raw/maa-ace-2014-2.md

However, it works with GitHub repos.

luzdealba commented 8 years ago

I can confirm this bug though I cannot quite get the reproducible steps. I'm under the impression that it is related to having an open StackEdit session (for some reason StackEdit forces you to work on a single tab) 'cause I noticed that if open the link -Gist or otherwise- on a different browser it goes fine... until I try to open another one, and the behavior gets even weirder if I'm editing on another tab.

It's such a pity because I really like the editor, it's quite a fine product, but this is for me the one feature that can't fail since sharing my docs for reviewing is a critical part of my workflow.

luzdealba commented 8 years ago

Also, the viewer uses an anchor instead of a GET param to pass the URL to view, and there isn't a JavaScript routine to check when the anchor has changed to load a new document accordingly, which forces the user to open several tabs to view a new document, which goes against StackEdit's seeming idea of getting you working on a single tab.