Module: Jekyll
- Defined in:
- lib/jekyll/timeline_tag.rb
Defined Under Namespace
Classes: TimelineEventTag, TimelineTag
Constant Summary collapse
- TIMELINE_ATTR_RE =
/(\w+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\S+))/
Class Method Summary collapse
Class Method Details
.parse_attrs(markup) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/jekyll/timeline_tag.rb', line 6 def self.parse_attrs(markup) attrs = {} markup.scan(TIMELINE_ATTR_RE) do |key, dq, sq, | attrs[key] = dq || sq || || "" end attrs end |