Coder Social home page Coder Social logo

michfield / sublime-strapdown-preview Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 9.0 261 KB

Markdown preview plugin for Sublime Text 3 using Strapdown.js. No server-side processing is required as Strapdown.js is purely browser-based Markdown converter using Twitter Bootstrap for theming support.

JavaScript 88.40% Python 7.21% CSS 4.40%

sublime-strapdown-preview's Issues

Unable to load from Package Controll installation

reloading plugin Strapdown Markdown Preview.Strapdown Markdown Preview
found 1 files for base name Soda Dark 3.sublime-theme
desktop/init.py in /Users/leafy/Library/Application Support/Sublime Text 3/Installed Packages/Strapdown Markdown Preview.sublime-package is not utf-8 encoded, unable to load plugin

Preview in Sublime Text fails in ST3

Running the command Strapdown.js Markdown: Preview in Sublime Text in ST3 build 3021 fails with the following error:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 525, in run_
    return self.run(edit, **args)
  File "C:\Users\david\AppData\Roaming\Sublime Text 3\Installed Packages\Strapdown Markdown Preview.sublime-package\Strapdown Markdown Preview.py", line 106, in run
TypeError: begin_edit() missing 2 required positional arguments: 'edit_token' and 'cmd'

"Preview in Sublime Text" does not convert properly

A new file with content

  General test
  ============
   * test 1
   * test2

Converts to

  <!DOCTYPE html>
  <html>
  <head>
  <meta charset="utf-8">
  <title>Untitled document</title>
  </head>
  <xmp theme="united" style="display:none;">
  2013 Week 6-8

  General test
  ============
   * test 1
   * test2


  </xmp>
  <script       src="/Users/leafy/Library/Application%20Support/Sublime%20Text%203/Installed%20Packages/Strapdown%20Markdown%20Preview.sublime-package/strapdown/strapdown.js"></script>
  </html>

If previewing with browser, there is only blank

Preview Fails in ST 3

When I install with the package manager and hit preview, nothing comes up. When I chose preview in Sublime Text the <script> file points to

`<script src="///C:/Users/mike/AppData/Roaming/Sublime%20Text%203/Installed%20Packages/Strapdown%20Markdown%20Preview.sublime-package/strapdown/strapdown.js"></script>

When I check that location Strapdown%20Markdown%20Preview.sublime-package points to a file. How could this direct the browser to strapdown.js? Is it supposed to be a folder reference? Is there a settings file where I can change this?

Package not utf-8 encoded

desktop/init.py in /Users/leafy/Library/Application Support/Sublime Text 3/Installed Packages/Strapdown Markdown Preview.sublime-package is not utf-8 encoded, unable to load plugin

cannot load plugin

Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/init.py", line 88, in import_module
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1505, in _find_and_load_unlocked
File "", line 313, in _call_with_frames_removed
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1505, in _find_and_load_unlocked
File "", line 313, in _call_with_frames_removed
File "", line 1577, in _gcd_import
File "", line 1558, in _find_and_load
File "", line 1522, in _find_and_load_unlocked
ImportError: No module named 'Strapdown'
theme loaded
desktop/init.py in C:\Users\Matthias\AppData\Roaming\Sublime Text 3\Installed Packages\Strapdown.js Markdown Preview.sublime-package is not utf-8 encoded, unable to load plugin

utf-8 encoding seems to be missing

can not load strapdown.js

The script referenced by preview html
/home/wjzhou/.config/sublime-text-3/Installed%20Packages/Strapdown%20Markdown%20Preview.sublime-package/strapdown/strapdown.js is unaccessible from browser because this file is located in a .sublime-package file (not a dir).

ImportError: No module named 'Strapdown'

Hi, I installed this plugin using Package Control. But the console gives the following errors:

reloading plugin Strapdown.js Markdown Preview.Strapdown Markdown Preview
Traceback (most recent call last):
  File "D:\Dropbox\APP\ST3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1505, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1505, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked
ImportError: No module named 'Strapdown'

Do you know how to or could you fix it please?

not working in ST3 anymore

this used to work but now i get:

reloading plugin Strapdown Markdown Preview.Strapdown Markdown Preview
desktop/init.py in C:\Users\Matthias\AppData\Roaming\Sublime Text 3\Installed Packages\Strapdown Markdown Preview.sublime-package is not utf-8 encoded, unable to load plugin
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 543, in run_
return self.run(edit, **args)
File "Strapdown Markdown Preview in C:\Users\Matthias\AppData\Roaming\Sublime Text 3\Installed Packages\Strapdown Markdown Preview.sublime-package", line 101, in run
AttributeError: 'module' object has no attribute 'open'

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.