> As I was going through "Take Control of BBEdit," I ran across the "Try Markdown" section and decided to do just that. I find that while "Preview in BBEdit" works fine, choosing to preview in any browser displays only the raw, unformatted text in the browser. What's wrong?
Hey John,
I'm pretty sure there is nothing wrong. BBEdit's "Preview in BBEdit" command understands Markdown, and renders it correctly. On the other hand, when you "Preview in …" to send the document to another browser, the raw document is sent to the browser. If you "View Source" in whichever browser you're using, you'll see it's just the Markdown document. Browsers don't understand Markdown, so they render the document as text. If you want to see what the Markdown document looks like when rendered as HTML, you'll need to translate it first (running the Markdown document through markdown.pl, for example) and view the resulting html file in your browser.
Hope this helps,
Chip Warden
FWIW, I use [Marked][] when previewing Markdown
I make an "open in Marked" script for BBEdit
#!/bin/sh
if [ "$BB_DOC_PATH" != "" ]
then
open -a Marked "$BB_DOC_PATH"
fi
And assigned a keyboard shortcut for it.
Works great.
Marked is $4 on the Mac App Store.
("Disclaimer:" the developer of Marked is a friend/colleague, but I
don't get anything out of referring people to it, and although I was a
beta tester for it, I bought my own copy. After all, it's only $4.)
[Marked]: http://itunes.apple.com/us/app/marked/id448925439?mt=12
Your browsers doesn't understand markdown, and shows just the text.
You'd need to preview in a viewer that understands markdown syntax. There is a markdown preview service, but I've never used it.
<http://ryangray.posterous.com/markdown-preview-text-service-for-mac-os-x>
--
"Those people who think they know everything are a great annoyance to
those of us who do." - Isaac Asimov
> <http://ryangray.posterous.com/markdown-preview-text-service-for-mac-os-x>
Oh, I also found this, which sounds interesting.
<https://github.com/rentzsch/markdownlive/downloads>
--
I'm no psychologist (although I play one when I'm picking up chicks over
by the asylum)