Class: ExtendedMarkup

Inherits:
SM::SimpleMarkup
  • Object
show all
Defined in:
lib/wee-pm/slideshtml.rb

Direct Known Subclasses

SlidesMarkup

Instance Method Summary collapse

Constructor Details

#initializeExtendedMarkup

Returns a new instance of ExtendedMarkup.



127
128
129
130
131
132
133
134
135
136
# File 'lib/wee-pm/slideshtml.rb', line 127

def initialize
  super
  # and links of the form  <text>[<url>] or {text with spaces}[<url>]
  add_special(/(((\{.*?\})|\b\S+?)\[\S+?\])/, :TIDYLINK)

  # and external references
  add_special(/((link:|http:|mailto:|ftp:|www\.)\S+\w\/?)/, :HYPERLINK)

  add_special(/(ruby-talk:\d+)/, :RUBYTALK)
end