Class: Kramdown::Element

Inherits:
Object show all
Defined in:
lib/kramdown-rfc2629.rb

Instance Method Summary collapse

Instance Method Details

#rfc2629_fixObject



69
70
71
72
73
74
75
76
77
78
# File 'lib/kramdown-rfc2629.rb', line 69

def rfc2629_fix
  if a = attr
    if anchor = a.delete('id')
      a['anchor'] = anchor
    end
    if anchor = a.delete('href')
      a['target'] = anchor
    end
  end
end