lib/rmake-notation.rb in rmake-notation-0.0.7 vs lib/rmake-notation.rb in rmake-notation-0.0.8
- old
+ new
@@ -126,10 +126,10 @@
when /^[!]/
len = block.length - block.gsub!(/^[!]*/, "").length + 2
s = generate_contents(block)
a_name = "#{@title_list.length + 1}_#{len}"
@title_list << [s, len, a_name]
- block = "<h#{len}><a name=\"#{a_name}\"></a>#{s}</h#{len}>"
+ block = "<a name=\"#{a_name}\"></a><h#{len} id=\"title_#{a_name}\">#{s}</h#{len}>"
when /^[|][|][|]/
block = self.process_table_line(block)
when /^[|]/