GithubHelp home page GithubHelp logo

Comments (8)

JamshedVesuna avatar JamshedVesuna commented on June 15, 2024

Are you using any of the optional flags? What browser are you using?
If you're able to manually open /tmp/vim-markdown-preview.html, sounds like it might be an osascript issue with Google Chrome.

from vim-markdown-preview.

craiga avatar craiga commented on June 15, 2024

I haven't configured any of the options, so I'm expecting it to open with Safari (which is what the README says it should do).

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on June 15, 2024

By default, this plugin does what you manually ran: open -g /tmp/vim-markdown-preview.html. What version of macvim are you using? What version of macOS are you using?

from vim-markdown-preview.

craiga avatar craiga commented on June 15, 2024

macOS 10.12.1, MacVIM 8.0 (116).

I've taken a look through the .vim file and I can't really make heads of tails of what might've caused this issue (I'm just trying switching from Textmate to MacVIM at the moment), but I find it odd that there's no mention of Safari in this file.

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on June 15, 2024

By default, open will use your default system browser. On macOS, this is Safari (unless otherwise changed). On the command-line, can you run through the following steps:

markdown README.md > /tmp/vim-markdown-preview.html
open -g /tmp/vim-markdown-preview.html

Does this work?

from vim-markdown-preview.

dschuessler avatar dschuessler commented on June 15, 2024

I confirm the issue for OS X 10.11.6, MacVim 8.0 (120).

As markdown is not installed by default, I installed it via brew install markdown to test your suggested steps with an empty markdown file. The second step opened the markdown preview file in Safari, but it was empty and did not refresh when writing stuff in the markdown file.

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on June 15, 2024

@Phosphor303 if markdown README.md > /tmp/vim-markdown-preview.html renders an empty html file can you try using another markdown to html generator? You can also try using grip.

from vim-markdown-preview.

JamshedVesuna avatar JamshedVesuna commented on June 15, 2024

Closing this out for now, feel free to re-open if this is still an issue.

from vim-markdown-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.