Skip to content
Browse files

Merged upstream into master

  • Loading branch information...
2 parents 19295f6 + 229de99 commit 7eced01c278595e60f7e0e6271f3a4be32a4de74 @pdaether pdaether committed
Showing with 16 additions and 6 deletions.
  1. +8 −2 MarkdownBuild.py
  2. +2 −2 README.md
  3. +1 −1 markdown.css
  4. +2 −1 messages.json
  5. +3 −0 messages/0.2.1.txt
View
10 MarkdownBuild.py
@@ -3,7 +3,9 @@
import markdown_python
import os
import tempfile
-import urllib
+import subprocess
+import webbrowser
+
class MarkdownBuild(sublime_plugin.WindowCommand):
def run(self):
@@ -26,4 +28,8 @@ def run(self):
output = tempfile.NamedTemporaryFile(delete=False, suffix='.html')
output.write(html.encode('UTF-8'))
output.close()
- self.window.run_command('open_url', {"url": "file://" + urllib.quote(output.name)})
+ webbrowser.open("file://" + output.name)
+ #if sublime.platform() == 'osx':
+ # subprocess.call("open " + output.name, shell=True)
+ #else:
+ # self.window.run_command('open_url', {"url": output.name})
View
4 README.md
@@ -1,4 +1,4 @@
-# Sublime Markdown (version 0.2.0)
+# Sublime Markdown (version 0.2.1)
This is a Sublime Text plugin for building markdown.
@@ -6,7 +6,7 @@ This is a Sublime Text plugin for building markdown.
Install using Package Control (Recommanded)
-1. I guess most Sublime Text 2 users are using Sublime Package Control. If not, please install in from here <http://wbond.net/sublime_packages/package_control>
+1. I guess most Sublime Text 2 users are using Sublime Package Control. If not, please install it from here <http://wbond.net/sublime_packages/package_control>
2. Go to Preference > Package Control, and Choose "Install Package"
3. Choose the package named "MarkdownBuild" to install it
View
2 markdown.css
@@ -14,7 +14,7 @@ body{
line-height: 1.5;
margin: 2em 3em;
text-align:left;
- padding: 0 350px 0 350px;
+ padding: 0 100px 0 100px;
}
pre{
View
3 messages.json
@@ -1,3 +1,4 @@
{
- "0.2.0": "messages/0.2.0.txt"
+ "0.2.0": "messages/0.2.0.txt",
+ "0.2.1": "messages/0.2.1.txt"
}
View
3 messages/0.2.1.txt
@@ -0,0 +1,3 @@
+SublimeMarkdownBuild 0.2.1
+
+- make it work in linux

0 comments on commit 7eced01

Please sign in to comment.
Something went wrong with that request. Please try again.