diff --git a/Readme.original b/Readme.original index b59bdde..9411ba7 100644 --- a/Readme.original +++ b/Readme.original @@ -1,44 +1,28 @@ -# MultiMarkdown QuickLook Plugin # +### MultiMarkdown Quick Look with Style -## Introduction ## + -This is a complete rewrite of the MultiMarkdown version of Phil Toland's QLMarkdown plugin. The MMD version caused multiple copies of the `multimarkdown` process to spawn and run the CPU usage to 100%. I'm sure it was something I did, and not a problem with qlmarkdown. +This is a quick fork of Fletcher Penney's [MMD Quicklook project][mmdql]. It adds some styling to the default Quick Look preview (based on GitHub CSS) and allows for customization via a `.mdqlstyle.css` file in your home folder. -But in order to fix it, it just made more sense to start over. +![MultiMarkdown Quicklook with Style][screenshot] -This program allows you to preview a MultiMarkdown text file (or OPML file) in the Finder after converting it to HTML with MMD. +To install, [download the zip][dl], unarchive and place the `MultiMarkdown QuickLook.qlgenerator` file in `~/Library/QuickLook/`. To make sure the Quick Look generator list reloads with the new file, you can run `qlmanage -r` on the command line. -## Installation ## +To use a custom style, name the CSS file `.mdqlstyle.css` and place it in your User's home directory. Note the leading period. Default padding for the body class will be included before your styles, so you can pretty much drop in any CSS you want from any source. Use one of the provided files, copy CSS from your blog, your favorite website or build your own. -To install, simply put the "MultiMarkdown QuickLook" file in: +### Ready-made styles - ~/Library/QuickLook +A couple of default styles lifted from [Marked.app][marked]. -To uninstall, simply remove it. +* [Swiss](https://raw.github.com/ttscoff/MMD-QuickLook/master/mdqlstyle.swiss.css) ([screenshot][swissshot]) +* [Upstanding Citizen](https://raw.github.com/ttscoff/MMD-QuickLook/master/mdqlstyle.upstandingcitizen.css) ([screenshot][upshot]) (includes custom fonts embedded in the CSS as data URIs) -This version of the QuickLook plugin includes an embedded copy of MultiMarkdown 3.2, as well as `opml2mmd.xslt`. So there's nothing else to install to get it to work. The version of mmd that's embedded should run on any Intel Mac. +![Upstanding Citizen][upcropped] - -Downloads ---------- - -Source code is available at . - -You can download a binary release from . - - -License -------- - -The QLMarkdown code is distributed under the same terms as [peg-multimarkdown]. - -Known Issues ------------- - -Images are not displayed in previews. - - -Version History ---------------- - -[peg-multimarkdown]: https://github.com/fletcher/peg-multimarkdown +[mmdql]: https://github.com/fletcher/MMD-QuickLook +[screenshot]: https://github.com/ttscoff/MMD-QuickLook/raw/master/MMDQLGithub-1.jpg +[dl]: http://assets.brettterpstra.com/MultiMarkdown%20QuickLook.qlgenerator.zip +[swissshot]: https://github.com/ttscoff/MMD-QuickLook/raw/master/MMDQLSwiss.jpg +[upshot]: https://github.com/ttscoff/MMD-QuickLook/raw/master/MMDQLUpstanding.jpg +[upcropped]: https://github.com/ttscoff/MMD-QuickLook/raw/master/MMDQLUpstandingCropped.jpg +[marked]: http://markedapp.com diff --git a/readme.md b/readme.md index 9411ba7..fce4f36 100644 --- a/readme.md +++ b/readme.md @@ -1,28 +1,17 @@ -### MultiMarkdown Quick Look with Style +### Day One Quick Look Plugin - +This is a fork of Brett Terpstra's [MultiMarkdown Quick Look with Style][mmdqlws], which is a fork of Fletcher Penney's [MMD Quicklook project][mmdql]. -This is a quick fork of Fletcher Penney's [MMD Quicklook project][mmdql]. It adds some styling to the default Quick Look preview (based on GitHub CSS) and allows for customization via a `.mdqlstyle.css` file in your home folder. +This Quick Look Plugin is for Day One entry files (`.doentry`). It does not replace other Markdown Quick Look plugins. -![MultiMarkdown Quicklook with Style][screenshot] +### Why Make a Quick Look Plugin for Day One? -To install, [download the zip][dl], unarchive and place the `MultiMarkdown QuickLook.qlgenerator` file in `~/Library/QuickLook/`. To make sure the Quick Look generator list reloads with the new file, you can run `qlmanage -r` on the command line. +Good question. Not sure. I just felt like doing it. I also found myself annoyed by the fact that a huge ribbon would show up every time I tried to quick look at a Day One entry. Since Day One uses Markdown, I figured it would be easy to create. -To use a custom style, name the CSS file `.mdqlstyle.css` and place it in your User's home directory. Note the leading period. Default padding for the body class will be included before your styles, so you can pretty much drop in any CSS you want from any source. Use one of the provided files, copy CSS from your blog, your favorite website or build your own. +### Install -### Ready-made styles - -A couple of default styles lifted from [Marked.app][marked]. - -* [Swiss](https://raw.github.com/ttscoff/MMD-QuickLook/master/mdqlstyle.swiss.css) ([screenshot][swissshot]) -* [Upstanding Citizen](https://raw.github.com/ttscoff/MMD-QuickLook/master/mdqlstyle.upstandingcitizen.css) ([screenshot][upshot]) (includes custom fonts embedded in the CSS as data URIs) - -![Upstanding Citizen][upcropped] +To install, [download the zip][dl], unarchive and place the `Day One QuickLook.qlgenerator` file in `~/Library/QuickLook/`. To make sure the Quick Look generator list reloads with the new file, you can run `qlmanage -r` on the command line. [mmdql]: https://github.com/fletcher/MMD-QuickLook -[screenshot]: https://github.com/ttscoff/MMD-QuickLook/raw/master/MMDQLGithub-1.jpg -[dl]: http://assets.brettterpstra.com/MultiMarkdown%20QuickLook.qlgenerator.zip -[swissshot]: https://github.com/ttscoff/MMD-QuickLook/raw/master/MMDQLSwiss.jpg -[upshot]: https://github.com/ttscoff/MMD-QuickLook/raw/master/MMDQLUpstanding.jpg -[upcropped]: https://github.com/ttscoff/MMD-QuickLook/raw/master/MMDQLUpstandingCropped.jpg -[marked]: http://markedapp.com +[mmdqlws]: https://github.com/ttscoff/MMD-QuickLook +[dl]: http://www.cs.utah.edu/~philipbl/Day%20One%20QuickLook.qlgenerator.zip diff --git a/sample.doentry b/sample.doentry new file mode 100644 index 0000000..e51cde3 --- /dev/null +++ b/sample.doentry @@ -0,0 +1,56 @@ + + + + + Creation Date + 2013-06-20T22:39:48Z + Entry Text + Here is a **test** *entry*. + +Here is a [link](http://www.google.com) + +| test1 | test2 | test3 | +|-------|-------|-------| +| 1 | 2 | 3 | +| 4 | 5 | 6 | + +How about a footnote?[^1] + + +[^1]: Here is a footnote. + + + Location + + Administrative Area + Utah + Country + United States + Latitude + 40.768628823608871 + Locality + Salt Lake City + Longitude + -111.84591843757019 + Place Name + University of Utah + + Starred + + Time Zone + America/Denver + UUID + C1859ED5927048B0BC6656A032E786B1 + Weather + + Celsius + 23 + Description + Mostly Sunny + Fahrenheit + 73 + IconName + pcloudy.png + + +