emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* embed markdown?
@ 2011-03-10  8:09 Fred Concklin
  2011-03-10  8:49 ` Christian Moe
  2011-03-10  8:50 ` Puneeth Chaganti
  0 siblings, 2 replies; 3+ messages in thread
From: Fred Concklin @ 2011-03-10  8:09 UTC (permalink / raw)
  To: emacs-orgmode

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. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: embed markdown?
  2011-03-10  8:09 embed markdown? Fred Concklin
@ 2011-03-10  8:49 ` Christian Moe
  2011-03-10  8:50 ` Puneeth Chaganti
  1 sibling, 0 replies; 3+ messages in thread
From: Christian Moe @ 2011-03-10  8:49 UTC (permalink / raw)
  To: Fred Concklin; +Cc: emacs-orgmode

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.
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: embed markdown?
  2011-03-10  8:09 embed markdown? Fred Concklin
  2011-03-10  8:49 ` Christian Moe
@ 2011-03-10  8:50 ` Puneeth Chaganti
  1 sibling, 0 replies; 3+ messages in thread
From: Puneeth Chaganti @ 2011-03-10  8:50 UTC (permalink / raw)
  To: Fred Concklin; +Cc: emacs-orgmode

On Thu, Mar 10, 2011 at 1:39 PM, Fred Concklin <fredconcklin@gmail.com> wrote:
[..]
>
> [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.

They use org-ruby.  https://github.com/bdewey/org-ruby

-- Puneeth

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-10  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10  8:09 embed markdown? Fred Concklin
2011-03-10  8:49 ` Christian Moe
2011-03-10  8:50 ` Puneeth Chaganti

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).