legal_markdown 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/README.md +1 -1
- data/lib/legal_markdown.rb +29 -12
- data/lib/legal_markdown/make_yaml_frontmatter.rb +1 -1
- data/lib/legal_markdown/version.rb +1 -1
- data/test/test_legal_markdown_to_markdown.rb +43 -0
- data/test/tests/00.load_write_no_action.lmd +20 -0
- data/test/tests/00.load_write_no_action.md +20 -0
- data/test/tests/01.load_partial_no_action.lmd +22 -0
- data/test/tests/01.load_partial_no_action.md +27 -0
- data/test/tests/02.load_partials_no_action.lmd +24 -0
- data/test/tests/02.load_partials_no_action.md +34 -0
- data/test/tests/10.mixins_in_headers_and_text.lmd +20 -0
- data/test/tests/10.mixins_in_headers_and_text.md +12 -0
- data/test/tests/11.mixins_in_today_function.lmd +4 -0
- data/test/tests/11.mixins_in_today_function.md +1 -0
- data/test/tests/12.opt_clauses_no_subs.lmd +18 -0
- data/test/tests/12.opt_clauses_no_subs.md +9 -0
- data/test/tests/13.opt_clauses_subs.lmd +27 -0
- data/test/tests/13.opt_clauses_subs.md +11 -0
- data/test/tests/14.opt_clauses_with_mixins.lmd +24 -0
- data/test/tests/14.opt_clauses_with_mixins.md +9 -0
- data/test/tests/20.block_no_addons.lmd +32 -0
- data/test/tests/20.block_no_addons.md +40 -0
- data/test/tests/21.block_no_indents.lmd +33 -0
- data/test/tests/21.block_no_indents.md +40 -0
- data/test/tests/22.block_all_indents.lmd +33 -0
- data/test/tests/22.block_all_indents.md +40 -0
- data/test/tests/23.block_all_indents.md +40 -0
- data/test/tests/24.block_part_indents.lmd +40 -0
- data/test/tests/24.block_part_indents.md +52 -0
- data/test/tests/25.block_no_resets.lmd +33 -0
- data/test/tests/25.block_no_resets.md +40 -0
- data/test/tests/26.block_all_resets.lmd +33 -0
- data/test/tests/26.block_all_resets.md +40 -0
- data/test/tests/27.block_part_resets.lmd +40 -0
- data/test/tests/27.block_part_resets.md +52 -0
- data/test/tests/28.block_provs_multi_line_no_indent.lmd +42 -0
- data/test/tests/28.block_provs_multi_line_no_indent.md +52 -0
- data/test/tests/29.block_provs_multi_line_indents.lmd +42 -0
- data/test/tests/29.block_provs_multi_line_indents.md +52 -0
- data/test/tests/30.block_all_leader_types.lmd +43 -0
- data/test/tests/30.block_all_leader_types.md +52 -0
- data/test/tests/31.block_complex_leader_types.lmd +44 -0
- data/test/tests/31.block_complex_leader_types.md +52 -0
- data/test/tests/32.block_new_leader_style.lmd +47 -0
- data/test/tests/32.block_new_leader_style.md +52 -0
- data/test/tests/33.block_with_pre_simple.lmd +33 -0
- data/test/tests/33.block_with_pre_simple.md +40 -0
- data/test/tests/34.block_with_pre_complex.lmd +34 -0
- data/test/tests/34.block_with_pre_complex.md +40 -0
- data/test/tests/35.block_with_preval.lmd +33 -0
- data/test/tests/35.block_with_preval.md +40 -0
- data/test/tests/36.block_with_crossrefs.lmd +33 -0
- data/test/tests/36.block_with_crossrefs.md +40 -0
- data/test/tests/37.block_with_diff_start_pt.lmd +34 -0
- data/test/tests/37.block_with_diff_start_pt.md +40 -0
- data/test/tests/40.block_with_mixins.lmd +45 -0
- data/test/tests/40.block_with_mixins.md +52 -0
- data/test/tests/41.block_with_opt_clauses.lmd +48 -0
- data/test/tests/41.block_with_opt_clauses.md +50 -0
- data/test/tests/42.block_with_opt_clauses_and_mixins.lmd +54 -0
- data/test/tests/42.block_with_opt_clauses_and_mixins.md +50 -0
- data/test/tests/partials/z.partial1 +6 -0
- data/test/tests/partials/z.partial2 +6 -0
- metadata +125 -5
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -322,7 +322,7 @@ If you have needs that you think other people may have, feel free to put them up
|
|
322
322
|
|
323
323
|
1. Fork the repository.
|
324
324
|
2. Create your feature branch (`git checkout -b my-new-feature`).
|
325
|
-
3. Add Tests (and feel free to help here since I
|
325
|
+
3. Add Tests (and feel free to help here since I'm still learning tests).
|
326
326
|
4. Commit your changes (`git commit -am 'Add some feature'`).
|
327
327
|
5. Push to the branch (`git push origin my-new-feature`).
|
328
328
|
6. Create new Pull Request.
|
data/lib/legal_markdown.rb
CHANGED
@@ -13,12 +13,13 @@ class LegalToMarkdown
|
|
13
13
|
elsif ARGV.include?("--headers")
|
14
14
|
MakeYamlFrontMatter.new(ARGV)
|
15
15
|
else
|
16
|
-
|
16
|
+
args = ARGV.dup
|
17
|
+
LegalToMarkdown.new(args)
|
17
18
|
end
|
18
19
|
end # main
|
19
20
|
|
20
|
-
def initialize(
|
21
|
-
data = load(
|
21
|
+
def initialize(args)
|
22
|
+
data = load(args) # Get the Content
|
22
23
|
parsed_content = parse_file(data) # Load the YAML front matter
|
23
24
|
mixed_content = mixing_in(parsed_content[0], parsed_content[1]) # Run the Mixins
|
24
25
|
headed_content = headers_on(mixed_content[0], mixed_content[1]) # Run the Headers
|
@@ -30,9 +31,9 @@ class LegalToMarkdown
|
|
30
31
|
# | Step 1 |
|
31
32
|
# ----------------------
|
32
33
|
# Parse Options & Load File
|
33
|
-
def load(
|
34
|
-
@output_file =
|
35
|
-
@input_file =
|
34
|
+
def load(args)
|
35
|
+
@output_file = args[-1]
|
36
|
+
@input_file = args[-2] ? args[-2] : args[-1]
|
36
37
|
begin
|
37
38
|
if @input_file != "-"
|
38
39
|
source_file = File::read(@input_file) if File::exists?(@input_file) && File::readable?(@input_file)
|
@@ -106,7 +107,12 @@ class LegalToMarkdown
|
|
106
107
|
content[pattern]
|
107
108
|
get_it_all = $& || ""
|
108
109
|
sub_clause = $2 || ""
|
109
|
-
|
110
|
+
if sub_clause[sub_pattern] && clauses_to_delete.include?($1)
|
111
|
+
next
|
112
|
+
elsif sub_clause[sub_pattern]
|
113
|
+
pattern = /\[{{#{mixin}}}\s*?.*?\n*?\].*?\n*?\]/m
|
114
|
+
content[pattern]; get_it_all = $& || ""
|
115
|
+
end
|
110
116
|
content = content.gsub( get_it_all, "" )
|
111
117
|
clauses_to_delete.delete( mixin ) unless content[pattern]
|
112
118
|
end
|
@@ -130,7 +136,7 @@ class LegalToMarkdown
|
|
130
136
|
|
131
137
|
def text_mixins( mixins, content )
|
132
138
|
mixins.each do | mixin, replacer |
|
133
|
-
unless mixin =~ /level-\d/ or mixin =~ /no-reset/ or mixin =~ /no-indent/
|
139
|
+
unless mixin =~ /level-\d/ or mixin =~ /no-reset/ or mixin =~ /no-indent/ or mixin =~ /level-style/
|
134
140
|
replacer = replacer.to_s
|
135
141
|
mixin_pattern = /({{#{mixin}}})/
|
136
142
|
content = content.gsub( $1, replacer ) if content =~ mixin_pattern
|
@@ -143,6 +149,7 @@ class LegalToMarkdown
|
|
143
149
|
clauses_mixed = clauses_mixins( mixins, content )
|
144
150
|
fully_mixed = text_mixins( clauses_mixed[0], clauses_mixed[1] )
|
145
151
|
fully_mixed[1].gsub!(/(\n\n+)/, "\n\n")
|
152
|
+
fully_mixed[1].squeeze!(" ")
|
146
153
|
return [ fully_mixed[0], fully_mixed[1] ]
|
147
154
|
end
|
148
155
|
|
@@ -192,8 +199,14 @@ class LegalToMarkdown
|
|
192
199
|
# {"ll." || "l2."=>[:type8, "Article ", "(", "1", ")", :no_reset || nil, " ", :preval || :pre || nil]}
|
193
200
|
|
194
201
|
@substitutions = {}
|
195
|
-
|
196
|
-
if headers.has_key?("
|
202
|
+
|
203
|
+
if headers.has_key?("level-style")
|
204
|
+
headers["level-style"] =~ /l1/ ? @deep_leaders = true : @deep_leaders = false
|
205
|
+
else
|
206
|
+
@deep_leaders = false
|
207
|
+
end
|
208
|
+
|
209
|
+
if headers.has_key?("no-indent") && headers["no-indent"]
|
197
210
|
no_indent_array = headers["no-indent"].split(", ")
|
198
211
|
no_indent_array.include?("l." || "l1.") ? @offset = no_indent_array.size : @offset = no_indent_array.size + 1
|
199
212
|
else
|
@@ -358,7 +371,7 @@ class LegalToMarkdown
|
|
358
371
|
arrayed_block = []
|
359
372
|
old_block.each_line do |line|
|
360
373
|
next if line[/^\s*\n/]
|
361
|
-
line[/(^l
|
374
|
+
line[/(^l+\.|^l\d\.)\s*(\|.*?\|)*\s*(.*)$/] ? arrayed_block << [$1, $3, $2] : arrayed_block.last[1] << ("\n" + line.rstrip)
|
362
375
|
end
|
363
376
|
old_block = "" # for large files
|
364
377
|
|
@@ -383,7 +396,10 @@ class LegalToMarkdown
|
|
383
396
|
end
|
384
397
|
|
385
398
|
block << sub_it[6] + sub_it[1] + reference + " " + arrayed_line[1] + "\n\n"
|
386
|
-
|
399
|
+
if arrayed_line[2]
|
400
|
+
cross_references[arrayed_line[2]]= sub_it[1] + reference
|
401
|
+
cross_references[arrayed_line[2]].gsub!(/\A\*|\#+ |\.\z/, "") #guard against formatting of headers into txt
|
402
|
+
end
|
387
403
|
@substitutions[selector]= increment_the_branch(sub_it, selector, next_selector)
|
388
404
|
|
389
405
|
block
|
@@ -414,6 +430,7 @@ class LegalToMarkdown
|
|
414
430
|
# ----------------------
|
415
431
|
# Write the file
|
416
432
|
def write_it( final_content )
|
433
|
+
final_content = final_content.gsub(/ +\n/, "\n")
|
417
434
|
if @output_file && @output_file != "-"
|
418
435
|
File.open(@output_file, "w") {|f| f.write( final_content ) }
|
419
436
|
else
|
@@ -76,7 +76,7 @@ class MakeYamlFrontMatter
|
|
76
76
|
mixins = filter_yaml(yaml_data, scan_doc(content, mixin_pattern))
|
77
77
|
opt_clauses = filter_yaml(yaml_data, scan_doc(content, opt_clauses_pattern))
|
78
78
|
levels = filter_yaml(yaml_data, scan_doc(content, @structured_headers_pattern))
|
79
|
-
extras = filter_yaml(yaml_data, %w{no-indent no-reset
|
79
|
+
extras = filter_yaml(yaml_data, %w{no-indent no-reset level-style})
|
80
80
|
return [mixins, opt_clauses, levels, extras]
|
81
81
|
end
|
82
82
|
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#! ruby
|
2
|
+
require 'test/unit'
|
3
|
+
require 'tempfile'
|
4
|
+
require_relative '../lib/legal_markdown.rb'
|
5
|
+
|
6
|
+
class TestLegalMarkdownToMarkdown < Test::Unit::TestCase
|
7
|
+
# load all the .lmd files in the tests folder into an array
|
8
|
+
# run the first file through gem...LegalToMarkdown.main(input_file, output_file)
|
9
|
+
# output file to tmp dir.
|
10
|
+
# compare the tmp file to the .md file from the hash (the baseline) ... diff
|
11
|
+
# if assert_equal is false then stop....
|
12
|
+
|
13
|
+
def setup
|
14
|
+
Dir.chdir "./tests"
|
15
|
+
@lmdfiles = Dir.glob"*.lmd"
|
16
|
+
@lmdfiles.sort!
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_file ( filename )
|
20
|
+
contents = File::read( filename )
|
21
|
+
return contents
|
22
|
+
end
|
23
|
+
|
24
|
+
def create_temp
|
25
|
+
temp_file = Tempfile.new('lmd_tests')
|
26
|
+
return temp_file.path
|
27
|
+
end
|
28
|
+
|
29
|
+
def destroy_temp ( temp_file )
|
30
|
+
File.delete temp_file if File::exists?(temp_file)
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_files
|
34
|
+
@lmdfiles.each do | lmd_file |
|
35
|
+
puts "Testing => #{lmd_file}"
|
36
|
+
temp_file = create_temp
|
37
|
+
benchmark_file = File.basename(lmd_file, ".lmd") + ".md"
|
38
|
+
LegalToMarkdown.new( [ lmd_file, temp_file ] )
|
39
|
+
assert_equal(get_file(benchmark_file).chomp, get_file(temp_file).chomp, "This file through an error => #{benchmark_file}")
|
40
|
+
destroy_temp temp_file
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
2
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
3
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
4
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
5
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
6
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
|
8
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
9
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
10
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
11
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
12
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
13
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
14
|
+
|
15
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
16
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
17
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
18
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
19
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
20
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
2
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
3
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
4
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
5
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
6
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
|
8
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
9
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
10
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
11
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
12
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
13
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
14
|
+
|
15
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
16
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
17
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
18
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
19
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
20
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,22 @@
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
2
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
3
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
4
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
5
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
6
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
|
8
|
+
@include partials/z.partial1
|
9
|
+
|
10
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
11
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
12
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
13
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
14
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
15
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
16
|
+
|
17
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
18
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
19
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
20
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
21
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
22
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
2
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
3
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
4
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
5
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
6
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
|
8
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
9
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
10
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
11
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
12
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
13
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
14
|
+
|
15
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
16
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
17
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
18
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
19
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
20
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
21
|
+
|
22
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
23
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
24
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
25
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
26
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
27
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
2
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
3
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
4
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
5
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
6
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
|
8
|
+
@include partials/z.partial1
|
9
|
+
|
10
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
11
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
12
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
13
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
14
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
15
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
16
|
+
|
17
|
+
@include partials/z.partial2
|
18
|
+
|
19
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
20
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
21
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
22
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
23
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
24
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
2
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
3
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
4
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
5
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
6
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
|
8
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
9
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
10
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
11
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
12
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
13
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
14
|
+
|
15
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
16
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
17
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
18
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
19
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
20
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
21
|
+
|
22
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
23
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
24
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
25
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
26
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
27
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
28
|
+
|
29
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
30
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
31
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
32
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
33
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
34
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
|
3
|
+
test1: LOREDO
|
4
|
+
test4: nostrud
|
5
|
+
title:
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
# This is a header {{title}}
|
10
|
+
|
11
|
+
asd;lfkajsdf;lkj TEST1: {{test1}}
|
12
|
+
|
13
|
+
## This is a second header
|
14
|
+
|
15
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
16
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
17
|
+
quis nostrud exercitation {{test4}} ullamco laboris nisi ut aliquip ex ea commodo
|
18
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
19
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
20
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# This is a header
|
2
|
+
|
3
|
+
asd;lfkajsdf;lkj TEST1: LOREDO
|
4
|
+
|
5
|
+
## This is a second header
|
6
|
+
|
7
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
8
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
9
|
+
quis nostrud exercitation nostrud ullamco laboris nisi ut aliquip ex ea commodo
|
10
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
11
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
12
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1 @@
|
|
1
|
+
12 July, 2013
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
|
3
|
+
test3: false
|
4
|
+
test_2: true
|
5
|
+
|
6
|
+
---
|
7
|
+
|
8
|
+
# This is a header
|
9
|
+
|
10
|
+
asd;lfkajsdf;lkj
|
11
|
+
|
12
|
+
[{{test_2}}TEST2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Optional clause....]
|
13
|
+
|
14
|
+
## This is a second header
|
15
|
+
|
16
|
+
[{{test3}} Russian optional clause df;laksdj]
|
17
|
+
|
18
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# This is a header
|
2
|
+
|
3
|
+
asd;lfkajsdf;lkj
|
4
|
+
|
5
|
+
TEST2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Optional clause....
|
6
|
+
|
7
|
+
## This is a second header
|
8
|
+
|
9
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
|
3
|
+
# Optional Clauses
|
4
|
+
test3: true
|
5
|
+
test4: false
|
6
|
+
test_2: true
|
7
|
+
test_3: true
|
8
|
+
test_4: true
|
9
|
+
test_5: false
|
10
|
+
test_6: false
|
11
|
+
test_7: true
|
12
|
+
test_8: false
|
13
|
+
test_9: true
|
14
|
+
|
15
|
+
---
|
16
|
+
|
17
|
+
# This is a header
|
18
|
+
|
19
|
+
[{{test3}} Russian optional [{{test4}}clause df;laksdj]]
|
20
|
+
|
21
|
+
asd;lfkajsdf;lkj
|
22
|
+
|
23
|
+
[{{test_2}}TEST2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, [{{test_3}}quis nostrud exercitation [{{test_4}}ullamco] laboris nisi ut aliquip] ex ea commodo consequat. Duis aute irure dolor in [{{test_5}}reprehenderit in [{{test_6}}voluptate velit esse] cillum dolore eu fugiat] nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Optional clause....]
|
24
|
+
|
25
|
+
## This is a second header
|
26
|
+
|
27
|
+
[{{test_7}}Lorem ipsum dolor sit amet, [{{test_8}}consectetur adipisicing [{{test_9}}elit, sed do] eiusmod tempor incididunt ut] labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in] reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# This is a header
|
2
|
+
|
3
|
+
Russian optional
|
4
|
+
|
5
|
+
asd;lfkajsdf;lkj
|
6
|
+
|
7
|
+
TEST2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Optional clause....
|
8
|
+
|
9
|
+
## This is a second header
|
10
|
+
|
11
|
+
Lorem ipsum dolor sit amet, labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|