emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Fred Concklin <fredconcklin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: embed markdown?
Date: Thu, 10 Mar 2011 09:49:09 +0100	[thread overview]
Message-ID: <4D789085.8050007@christianmoe.com> (raw)
In-Reply-To: <874o7btn1b.fsf@gmail.com>

Hi, Fred,

About Github's markup library and org plugin (not Pandoc), see
https://github.com/github/markup

If it's just the ascii-art representation of the directory tree you 
want, you can wrap it in an example block. From your example:

#+BEGIN_EXAMPLE
  .
  |-- config.clj
  `-- resources
      |-- posts
      |   |-- 2009-04-17-back-up-and-restore-a-mysql-database.markdown
      |   |-- 2010-02-10-a-simple-clojure-irc-client.markdown
      |   `-- 2010-08-02-using-clojure-contrib-generic-interfaces.markdown
      |-- public
      |   `-- 404.html
      |-- site
      |   `-- index.markdown
      `-- templates
          `-- default.clj
#+END_EXAMPLE

If you want fancier output, you may want to look into using ditaa or 
Graphviz dot with org-babel.

Yours,
Christian


On 3/10/11 9:09 AM, Fred Concklin wrote:
> Hi all,
>
>     I'm Fred and I just joined the list.
>
>     I've been using github for a little bit and really like their parsing
>     of org-mode files on the web[1]. I was converting a markdown file to
>     org-mode wasn't able to figure out how to convert a directory
>     hierarchy from Md.
>
>     I've attached links to show you what I mean. Let me know if anybody
>     has any thoughts. Maybe tables? It all comes down to how github
>     renders org on their site in this case.
>
>     Is there a way to embed markdown as code inside of org?
>
>     unrendered-md: https://github.com/nakkaya/static/raw/master/README.md
>     rendered-md: https://github.com/nakkaya/static/blob/master/README.md
>     org-mode: https://github.com/fconcklin/static/blob/master/readme.org
>
>     Thanks all,
>     fpc
>
> [1] I assume they're running pandoc on the backend. However, there are a few
>     shortcomings. For instance, the #+begin_src sh tag doesn't display as
>     code on the web.
>
>

  reply	other threads:[~2011-03-10  8:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10  8:09 embed markdown? Fred Concklin
2011-03-10  8:49 ` Christian Moe [this message]
2011-03-10  8:50 ` Puneeth Chaganti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D789085.8050007@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fredconcklin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).