pandoku 0.4 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pandoku/document.rb +3 -1
- data/lib/pandoku/format.rb +1 -0
- data/lib/pandoku/formats/s5.rb +1 -1
- data/lib/pandoku/lookup_table.rb +2 -0
- metadata +1 -1
data/lib/pandoku/document.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/format'
|
2
2
|
|
3
3
|
module Pandoku
|
4
|
-
|
4
|
+
# The path of Pandoc executable binary.
|
5
|
+
PANDOC_PATH = ENV['PANDOC_PATH'] || 'pandoc' unless defined? PANDOC_PATH
|
5
6
|
|
7
|
+
# Pseudo IR for Pandoc.
|
6
8
|
class Document
|
7
9
|
attr_reader :format, :text
|
8
10
|
|
data/lib/pandoku/format.rb
CHANGED
data/lib/pandoku/formats/s5.rb
CHANGED
data/lib/pandoku/lookup_table.rb
CHANGED
@@ -2,8 +2,10 @@ require File.dirname(__FILE__) + '/format'
|
|
2
2
|
|
3
3
|
module Pandoku
|
4
4
|
module Formats
|
5
|
+
# Array of registered format classes.
|
5
6
|
LOOKUP_TABLE = []
|
6
7
|
|
8
|
+
# Exception class what be raised when the format cannot be found.
|
7
9
|
class LookupError < IndexError; end
|
8
10
|
|
9
11
|
# Find a format class by the +name+.
|