Permalink
Browse files

Revision to includes search, bugfix

All arguments that ask for a file now search for that file in the
project folders and the defined includes_paths before passing the
filename directly to Pandoc. Also fixed an error that caused the built
file not to open if an unsaved buffer was open.
  • Loading branch information...
1 parent 5fcce5f commit 00ae40e5de787efa44183df5a859f79c1b3ea7eb Daniel Shannon committed Dec 7, 2012
Showing with 826 additions and 251 deletions.
  1. +4 −2 Pandown.sublime-settings
  2. +3 −3 README.mdown
  3. +660 −0 Samples/GitHub.css
  4. +3 −2 default-pandoc-config.json
  5. +36 −0 messages/1.1.0.txt
  6. +120 −244 pandownBuildCommand.py
@@ -71,7 +71,9 @@
// "Speficy the base level for headers"
"base_header_level": 1,
- // Apply code classes to all indented code blocks.
+ // Apply code classes to all indented code blocks. N.B.:
+ // does not apply to fenced code, which must still be
+ // configured inline.
// MUST BE DEFINED AS A LIST, EVEN IF EMPTY. This is correct:
// "indented_code_classes": [],
// and so is this:
@@ -147,7 +149,7 @@
"ascii": false,
// When outputting Markdown, use reference-style links (e.g. [go here!][1])
- // rather than inline (e.g. [do here!](http://place.the) ).
+ // rather than inline (e.g. [go here!](http://place.the) ).
"reference_links": false,
// Force use of ATX-style headers ("# H1", "## H2", etc.) in output.
View
@@ -26,9 +26,9 @@ And this feature is extra-configurable: once you're familiar enough with the Pan
Currently, only arguments to Pandoc will be recognized in per-project configuration files.
### Templates
-The basic template from which Pandoc generates its HTML is just that: basic. And not very attractive. Without much trouble, you can do better on your own. For a non-designer and non-coder type, the templates included with Brett Terpstra's [Marked](http://markedapp.com) app are probably worth taking a look at; run an empty Markdown file through Marked and save it as HTML to get something that can become a lovely template file. (Brett has kindly made uncompressed versions of his CSS [available here](http://support.markedapp.com/kb/how-to-tips-and-tricks/writing-custom-css-for-marked).)
+The basic template from which Pandoc generates its HTML is just that: basic. And not very attractive. Without much trouble, you can do better on your own. For a non-designer and non-coder type, the stylesheets included with [Brett Terpstra](http://brettterpstra.com)'s wonderful [Marked](http://markedapp.com) app are probably worth taking a look at; run an empty Markdown file through Marked and save it as HTML to get something that can become a lovely template file. (Brett has kindly made uncompressed versions of his CSS [available here](http://support.markedapp.com/kb/how-to-tips-and-tricks/writing-custom-css-for-marked).)
-Consult the files in `Packages/Pandown/Samples` for a quickstart guide to building custom template files. The guide consists of a sample Markdown file, a sample template, a sample Pandoc configuration JSON, and the output HTML file generated from all those.
+Even more kindly, Brett has given the go-ahead for one of those templates to be distributed with this package. Consult the files in `Packages/Pandown/Samples` for a quickstart guide to building custom template files. The guide consists of a sample Markdown file, a sample template, a sample Pandoc configuration JSON, and the output HTML file generated from all those. Once you've played around with these files, you can use them for your own projects, too.
### Build Systems
In theory, the build command syntax supports all of Pandoc's possible `from` and `to` formats. In practice, I am but one man and haven't written and tested `sublime-build` settings for each and every one of them. Markdown is completely configured from the get-go, but if you wish to use another input language you'll need to write a `sublime-build` file. At minimum, it must contain the following:
@@ -43,7 +43,7 @@ If the output file is not a type that Sublime can open, setting `prevent_viewing
If you have any difficulties with or suggestions for Pandown, please don't hesitate to get in touch. You can use the GitHub "Issues" interface, or send an e-mail to Daniel at <d@daniel.sh>.
## Thanks and Credits
-The bare bones of the code were originally a modification of [Pandoc (Markdown)](https://github.com/jclement/SublimePandoc); though not much of what was there has survived, I'm grateful for the springboard. Almost all of the process-management code is from the `Defaults/exec.py` library. The package includes Gerald Storer's `minify_json` library, which is distributed under the MIT license and is obtainable [here](https://github.com/getify/JSON.minify). Thanks to Gerald for working around Python's (and Douglas Crockford's) obdurate refusal to allow comments in JSON.
+The bare bones of the code were originally a modification of [Pandoc (Markdown)](https://github.com/jclement/SublimePandoc); though not much of what was there has survived, I'm grateful for the springboard. Almost all of the process-management code is from the `Defaults/exec.py` library. The package includes Gerald Storer's `minify_json` library, which is distributed under the MIT license and is obtainable [here](https://github.com/getify/JSON.minify). Thanks to Gerald for working around Python's (and Douglas Crockford's) obdurate refusal to allow comments in JSON. [Brett Terpstra](http://brettterpstra.com)'s generous permission to include his CSS with this package is appreciated above all.
Oops, something went wrong.

0 comments on commit 00ae40e

Please sign in to comment.