Class: JayCustomItemBullet

Inherits:
Object
  • Object
show all
Defined in:
lib/jay_flavored_markdown/markdown_converter.rb

Overview

Add span tags and css classes to list headers.

before:

<ul>
  <li>(1) item header1</li>
  <li>(2) item header2</li>
</ul>

after:

<ul>
  <li class="bullet-list-item">
    <span class="bullet-list-marker">(1)</span> item header1
  </li>
  <li class="bullet-list-item">
    <span class="bullet-list-marker">(2)</span> item header2
  </li>
</ul>

Defined Under Namespace

Classes: Filter

Class Method Summary collapse

Class Method Details

.filter(*args) ⇒ Object



950
951
952
# File 'lib/jay_flavored_markdown/markdown_converter.rb', line 950

def self.filter(*args)
  Filter.call(*args)
end