martile 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/martile.rb +5 -2
  2. metadata +2 -2
data/lib/martile.rb CHANGED
@@ -5,6 +5,9 @@
5
5
  require 'rexle-builder'
6
6
  require 'rexle'
7
7
 
8
+
9
+ # bug fix: 20-Sep-2012: in ordered_list_to_html it now cuts off from
10
+ # parsing headings
8
11
  # bug fix: 04-Aug-2012; replaced \s with a space in regex patterns
9
12
  # modified: 28-Mar-2012; Added dynarex_to_table
10
13
  # modified: 28-Aug-2011; Added escaping of HTML within a code block
@@ -64,7 +67,7 @@ class Martile
64
67
 
65
68
  def ordered_list_to_html(s)
66
69
 
67
- s.split(/(?=\[#)/).map do |x|
70
+ s.split(/(?=\[#|^##)/).map do |x|
68
71
 
69
72
  s2, remainder = [x[/\[#.*#[^\]]+\]/m], ($').to_s] if x.strip.length > 0
70
73
 
@@ -107,4 +110,4 @@ class Martile
107
110
  return s
108
111
  end
109
112
 
110
- end
113
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: martile
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.7
5
+ version: 0.1.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-08-04 00:00:00 Z
13
+ date: 2012-09-20 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rexle-builder