On Thu, Mar 15, 2012 at 5:57 PM, Chip Warden <[email protected]> wrote:
>> 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.
>
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
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>