Markdown Template

nachodog at mac.com nachodog at mac.com
Fri Jan 6 17:25:15 PST 2006


I have seen the benefits of using John Gruber's, Markdown.  Quoting  
Gruber, "Markdown is a text-to-HTML conversion tool for web writers.  
Markdown allows you to write using an easy-to-read, easy-to-write  
plain text format, then convert it to structurally valid XHTML (or  
HTML)."  You can read more about this tool here:  http:// 
daringfireball.net/projects/markdown/

If you use OmniOutliner and know about Markdown, I sure you have seen  
Fletcher Penney's, Omnioutliner Markdown Plugin found here:  http:// 
fletcher.freeshell.org/wiki/OmniOutlinerMarkdownPlugin

This plugin works very well when you want your OO rows to be  
headers.  However, I would like to customize a OO template to include  
such things as an ordered list.

So here is what I have done:



1)  For all level rows, I have set markdown code in the prefix of the  
row inspector.  For example,

level 1 prefix #
level 2 prefix ##
level 3 prefix * text

2)  After writing a document exporting plaint text (fixed width)

This works spits out this:

#  Class 1.3
    ## Intro
      *  this
      *  that
      *  this

The problem is there are no line breaks, so it won't work as valid  
markdown code.  So, is it possible to create line breaks so that your  
exported plain text file would look like:

#  Class 1.3

## Intro

  *  this
  *  that
  *  this

Thanks for any thoughts!

Steve



More information about the OmniOutliner-Users mailing list