facelessuser / MarkdownPreview

Markdown preview and build plugin for Sublime Text https://facelessuser.github.io/MarkdownPreview/
Other
405 stars 53 forks source link

Could I install MarkdownPreview manually? #66

Closed CalanceHao closed 5 years ago

CalanceHao commented 5 years ago

I have trouble using the package control, look like caused by the unreachable server. Could I get the .zip of Markdown Preview somewhere and just put it into the /Sublime Text 3/Packages manually?

facelessuser commented 5 years ago

You could...

It can be quite involved as you also have install dependencies, and I'd be careful to install dependencies from their current tag, not the master branch. You can use BracketHighlighter's manual install documentation as a general guide, just look at the MarkdownPreview dependency file to get an idea of what dependencies you need for this project.

CalanceHao commented 5 years ago

sublime text 3 There is a little problem: I can see the setting, but couldn't show the commands.

My Steps:

  1. follow the ' BracketHighlighter's manual install documentation' and the BracketHighlighter can be used.

  2. I watch the dependencies.json. And there are 4 dependencies.

    "pygments", "pyyaml", "python-markdown", "pymdownx"

  3. search 'pymdownx' & 'pyyaml' on github, download and renamed them in /Packages.

  4. download MarkdownPreview to /Packages.

  5. add these code into 00-dependencies.py

    add_dependency('pyyaml')
    add_dependency('pymdownx')
  6. quit and restart

  7. follow the usage guide, I cover the user by default and don't change settings.

  8. I open ctrl+shift+P, no MarkdownPreview: commands😑

🤦🏻‍♀️Do you know how to solve this problem? P.S: My sublime version is 3.1.1, Build 3176.

facelessuser commented 5 years ago

search 'pymdownx' & 'pyyaml' on github, download and renamed them in /Packages.

Did you install the packages specifically for Sublime? The BracketHIighlighter instruction guide actually provided links for some of these packages, but not all of them. I would be careful and install only the latest release, not directly from the main branch, as the main branch may have unreleased things that should not be installed yet:

add these code into 00-dependencies.py

Did you forget to add these?

add_dependency('pygments')
add_dependency('python-markdown')
CalanceHao commented 5 years ago

🎵The Problem is solved and it works as expected😇THX~~~

New operations:

  1. I replace these files in your links, and the MarkdownPreview is used the latest ST3 2.2.2 filesinpackages

  2. and I make sure the four dependencies of MarkdownPreview are all write down into the 00-dependencies.py. 00dependencies

  3. quit and restart

If someone has the same problem hope it will helped😘