Class: ExtendedMarkup
- Inherits:
-
SM::SimpleMarkup
- Object
- SM::SimpleMarkup
- ExtendedMarkup
- Defined in:
- lib/wee-pm/slideshtml.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ ExtendedMarkup
constructor
A new instance of ExtendedMarkup.
Constructor Details
#initialize ⇒ ExtendedMarkup
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 |