revolunet/sublimetext-markdown-preview — Issue #3: Default, hard coded path to markdown.css is wrong
Author: lamnatos
Created: 2012-02-09 08:06:39+00:00
State: open

I installed this plugin by using [Package Control][pc_home]'s `Add Repository` functionality. The plugin gets installed in the `sublimetext-markdown-preview` folder. `MarkdownPreview.py` references the `markdown.css` file using a different path, `Markdown Preview`. This makes the command fail.

In `MarkdownPreview.py` I've replaced

```python
styles = open(os.path.join(sublime.packages_path(), 'Markdown Preview', 'markdown.css'), 'r').read()
```

with

```python
styles = open('markdown.css', 'r').read()
```

and it works. If the CSS is always going to be at the same place as `MarkdownPreview.py`, I don't think the whole path is necessary.

[pc_home]: http://wbond.net/sublime_packages/package_control