Class: RD::RD2BlogVisitor

Inherits:
RD2tDiaryVisitor
  • Object
show all
Defined in:
lib/tdiary/style/blogrd.rb

Instance Method Summary collapse

Instance Method Details

#apply_to_Headline(element, title) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/tdiary/style/blogrd.rb', line 30

def apply_to_Headline( element, title )
  r = "<h%1$1d>%2$s</h%1$1d>" % [ element.level + RD::TDIARY_BASE_LEVEL, title ]
  if element.level == 3 && @td_opt['multi_user'] && @td_author then
    r << "[" << @td_author << "]"
  end
  r
end