From 330b0d5a00e49c6243597c1b2d69e2b0560bdb7c Mon Sep 17 00:00:00 2001 From: Pete Sekan Date: Thu, 29 Nov 2012 12:19:36 +0100 Subject: [PATCH 1/5] html referres to an external css file and does no longer keep the css in the style tag. --- Markdown.tmLanguage.cache | Bin 0 -> 3451 bytes MarkdownBuild.py | 7 +++---- MultiMarkdown.tmLanguage.cache | Bin 0 -> 673 bytes 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 Markdown.tmLanguage.cache create mode 100644 MultiMarkdown.tmLanguage.cache diff --git a/Markdown.tmLanguage.cache b/Markdown.tmLanguage.cache new file mode 100644 index 0000000000000000000000000000000000000000..85bce9351c469591bf564de716cb3ca1ffff53d1 GIT binary patch literal 3451 zcmV->4TSQ)L;R=dLjVAHob6j*bKAxdXA;K^<2Y&Bq-i=ydNer=juartcAVIi$U2Fe zq+_R@*qyW`C>tbB5=J1v07uJ;p)}L!N9beo*6CXxJJXNQ&yi2k-8=l}fg)`wi5qhU z68`Kh_7;1)zug6%tkr6D*q(uHVsXv_FMI;_e*oK)usyA~b}GJ>&^g}7o!aav*nJMR z=Fs&=d$&KE`kYmeJ)4mQ)_w&M-nO~REZgyR=J5&H#0o6#2Pl_kjm4E$VH-1U8R9Ow z%kDDQ7+b-f?eBZYW#o^?%;QM=Z{$>m-=~a>{Hbdb%ME=p4H>aK!p0MRK$vHfvBgKb zaLOhj<6?j{nYahnJo|T2JJ+p{uaM!C6TZtlvd_qP8gepZB%B5ePFms$oY-+Z!5~&E z*>_x*_?~+Z-z4PI?QOZwY%)9$!@}uMPo9H;!|~w=UO0=t!lw1^(JjGP>uuKiWN?4w z!eLj?)}y+HCoUdFCZ}4j(W3F`esgetedW@j8MZsgDLGQ>ZJ^3n(CzE(+XE^XteihI z_mcDU{`r-|J~8>A-D!!z6lDQz;lDqZL~6_v>13p-vf(GHZTJN=D%T0Qj&`*ZSd(2G zJ+dYoo?@7c!fib{$eSL;TTQ(YpIY4UJ;P?(j^~J7DGZQ{wC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%vLkkXDl_DrqcH}tDgvpbL10Ua6G19X$>$DN|}OXl|rQss8DRu zohvov)^p7`EOO&rt?`5fq2<{su?hKX)9L@|M1q0 z>jbQD3^Ga~b7LekpYAH^p_OrP7$5b>r|sH~b-p%SbhI+GHyvE{h)SV_s^ zELcJGV#=zN)+lJ}dD^8K5p(J-Xt>HQ#7o(-D9{w_=?|yUZi1{3w#{~Q`!k)EXk-M0t*JLrK^Crd*VWdbK?{FdT_$|6Kg-u(}d*C zywkpY{}3}ijW&%&$JD!nUPn-06YHQLh1pNpYWOETBJnRvBja0s3|h4Tjrr3_UZOO~ zlvJ|NJN82^Ty!|YSBh&S6Op3X^N7JY<`P$ecLHfxi0(UHnzJKm8fW2W4zhhMC%l&F zGkrtjI#_36e&Fxb0LnU@PK^pXnxv)}B*%~!P$`;eB13O054eX&pzP8#kTaCeY zB`HIYkOks0bU9bc)$>wNXUGBSsbUrl4o?Sv*X$S#jY_X)n%x0TIhW?BlE39^BCphD zI_~)*@k#X3&q%Fscyu4
5C@B;%G8X+6Wc1cxV9bjHlNWLdUNy12ioY-v5nJFH4yvFyvqC)FrjR*qv?u&0Hi%-1){ z2oC#Y-}S1`(}F`>QG1}OP*R~`fcu%X_qcXcs2vF_N!9nbWciI6@AuW{mdf_#1Y>Eq z%9161c^Ct%5>>&X{xVavj2>4kA6G2n`8}>!KB^TCyb*unj;^>=iu|sXH(#q2 z%9{Y*8}JXm>A@*cijKJmX3B-Y>?_piczj@F#D)9-!#BZ>X)ETKiwEV*1j`udf^C{-E=#zHaHCCtp8j2eb`GZ~%LAK8#Q%3y;Ew5#oKO zkw0Nc4f00?9F&h=)2U-8tkz8ds@qydw dYP4#$VfmZw)%c4y{8Af^s3?xn{{dc+qwyPI*GK>W literal 0 HcmV?d00001 diff --git a/MarkdownBuild.py b/MarkdownBuild.py index 3a8372f..856e508 100644 --- a/MarkdownBuild.py +++ b/MarkdownBuild.py @@ -28,13 +28,12 @@ def run(self): return contents = view.substr(sublime.Region(0, view.size())) md = markdown_python.markdown(contents) - html = '' + html = '' if use_css: css = os.path.join(sublime.packages_path(), 'MarkdownBuild', 'markdown.css') if (os.path.isfile(css)): - styles = open(css, 'r').read() - html += '' - html += "" + md + "" + html += '' + html += "" + md + "" if output_html: html_name = os.path.splitext(file_name)[0] diff --git a/MultiMarkdown.tmLanguage.cache b/MultiMarkdown.tmLanguage.cache new file mode 100644 index 0000000000000000000000000000000000000000..49014b365ea0770b14663a2dcd14071a6f4a63fc GIT binary patch literal 673 zcmV;S0$%;UL;R;P1pokeoV8TjZqq;z?F9ry0tpZg+@x)l2RoIW^oEqEZPZrH6X6A( zz(m^ElV(+W*WDdAEiC;JzJY&a)^)%Qg*PG{X+5`{Ide8k3kwVPE94vzv^0x!UaD~S z7T?UjOt?pgRhEH7_xYXhVFFA8H%hXx(o8C31`vfjVJ22NyyF?LJ+@|0lPxUdS)mY; zHTGbo{CO@5sYuQ>m1Vj}!DqsdjU$@^OH^5O$|Y7Q5~it;Kp~2afMr~tLc+LVb9daK z_9R{JT76BJbB9@xqHx)Xno2i%#xb5OSM!GJ_5A0~4ama@@C5YD+=t{G!HJMZJjX(V znepkk+n62dB6{RkPSMN&@lgn)2?;RLfZoV8q^_r;9%SV<&#{A0MM*UhZXwe5Nwt2Cj_ zzekl1oLIDrzan_O3!g;g?Y6w0=(^R~kxDKta+<_qX~1jCSShrqZ6eOCffQo2V*zPG zVz&k_Dcr2@TwAgPNvjr^jc7 zptV*H&S7{pSaD*WJuYWsw-R}iEO%Q`h;nfaLVxGDy?xl<4&HPQI>GkN!Ew;pZ0`hz zTm7x0&BJzkW2^nhktejlxAfiyv)A#;bM;-ks Date: Thu, 29 Nov 2012 12:20:47 +0100 Subject: [PATCH 2/5] edit ignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d96ec97..eeb9568 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pyc -*.rb \ No newline at end of file +*.rb +.DS_Store \ No newline at end of file From 99cde6b8f27ca74fdd83a4a72465dc0f11910d55 Mon Sep 17 00:00:00 2001 From: Pete Sekan Date: Thu, 29 Nov 2012 12:53:13 +0100 Subject: [PATCH 3/5] added preferences like suggested by dflock in the original repo's issues. Change folder names from MarkdownBuild to SublimeMarkdownBuild cause that's the name of the repo --- Main.sublime-menu | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Main.sublime-menu diff --git a/Main.sublime-menu b/Main.sublime-menu new file mode 100644 index 0000000..7d242b2 --- /dev/null +++ b/Main.sublime-menu @@ -0,0 +1,34 @@ +[ + { + "caption": "Preferences", + "mnemonic": "n", + "id": "preferences", + "children": + [ + { + "caption": "Package Settings", + "mnemonic": "P", + "id": "package-settings", + "children": + [ + { + "caption": "MarkdownBuild", + "children": + [ + { + "command": "open_file", + "args": { "file": "${packages}/SublimeMarkdownBuild/MarkdownBuild.sublime-settings" }, + "caption": "Settings - Default" + }, + { + "command": "open_file", + "args": { "file": "${packages}/User/MarkdownBuild.sublime-settings" }, + "caption": "Settings - User" + } + ] + } + ] + } + ] + } +] \ No newline at end of file From a37715975e67ab3ced99d49be98b7b36942f43cd Mon Sep 17 00:00:00 2001 From: Pete Sekan Date: Thu, 29 Nov 2012 12:55:41 +0100 Subject: [PATCH 4/5] changed folder names because of dependencies --- MarkdownBuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MarkdownBuild.py b/MarkdownBuild.py index 856e508..997d2cb 100644 --- a/MarkdownBuild.py +++ b/MarkdownBuild.py @@ -30,7 +30,7 @@ def run(self): md = markdown_python.markdown(contents) html = '' if use_css: - css = os.path.join(sublime.packages_path(), 'MarkdownBuild', 'markdown.css') + css = os.path.join(sublime.packages_path(), 'SublimeMarkdownBuild', 'markdown.css') if (os.path.isfile(css)): html += '' html += "" + md + "" From 4b9952a707be5de4253662ed198b00755c87a8ea Mon Sep 17 00:00:00 2001 From: Pete Sekan Date: Thu, 29 Nov 2012 13:30:09 +0100 Subject: [PATCH 5/5] edit README --- Main.sublime-menu | 2 +- README.md | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Main.sublime-menu b/Main.sublime-menu index 7d242b2..70ec1e4 100644 --- a/Main.sublime-menu +++ b/Main.sublime-menu @@ -12,7 +12,7 @@ "children": [ { - "caption": "MarkdownBuild", + "caption": "SublimeMarkdownBuild", "children": [ { diff --git a/README.md b/README.md index e3ae056..1286b83 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ +#SublimeMarkdownBuild (version 0.5.0) +Based on the original [MarkdownBuild by erinata](https://github.com/erinata/SublimeMarkdownBuild) + +Works like the original, but differs in the following + ++ It's named SublimeMarkdownBuild, because that's the name of the original repo and I had some errors when I renamed it. ++ It has an preferences entry like [suggested by deflock in the original open issues.](https://github.com/erinata/SublimeMarkdownBuild/issues/2) ++ The styles are not included into the HTML via style-tag. Now the HTML referes to the external markdown.css. + +In addition you can read the original README: + # MarkdownBuild (version 0.4.0) This is a Sublime Text plugin for building markdown into html and open it in browser.