Module: Turndown::Plugins::GFM

Defined in:
lib/turndown/plugins/gfm.rb

Defined Under Namespace

Modules: HighlightedCodeBlock, Strikethrough, Tables, TaskListItems

Constant Summary collapse

HIGHLIGHT_REGEXP =
/highlight-(?:text|source)-([a-z0-9]+)/
ALIGN_MAP =
{
  "left" => ":--",
  "right" => "--:",
  "center" => ":-:"
}.freeze

Class Method Summary collapse

Class Method Details

.call(converter) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/turndown/plugins/gfm.rb', line 19

def call(converter)
  converter.use([
    HighlightedCodeBlock,
    Strikethrough,
    Tables,
    TaskListItems
  ])
end