Re-ordered markdown parsers... again. Maruku first, most featureful.
[git-blog.git] / lib / git-blog / core.rb
blob0c01adc99623bb8c692defcfbab69187c5006bce
1 require 'rubygems'
2 require 'git' # Ruby/Git
3 require 'git-blog/core_ext'
5 module GitBlog
6   TitleRegexen = {
7     'xhtml'     => /^<[^>]+>(.*)<[^>]+>$/,
8     'haml'      => /^%[^\s\{]+(?:\{[^\}]\})? (.*)$/,
9     'textile'   => /^h\d(?:[^\s\{]|\{[^\}]*\})*\. (.*)$/,
10     'markdown'  => /^(.*)$/ # Also works for other
11   }
12   
13   # Returns the path of file relative to the git-blog root.
14   # 'Borrowed' mostly wholesale from Haml 2.0.0 d-:
15   def self.Scope
16     File.expand_path( File.dirname(__FILE__) / '..' / '..' )
17   end
18 end
20 require 'git-blog/parsers'