Class: ThemeCheck::ShopifyLiquid::Documentation::MarkdownTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/theme_check/shopify_liquid/documentation/markdown_template.rb

Constant Summary collapse

%r{(\[([^\[]+)\]\((/[^\)]+)\))*}

Instance Method Summary collapse

Instance Method Details

#render(entry) ⇒ Object



9
10
11
12
13
14
# File 'lib/theme_check/shopify_liquid/documentation/markdown_template.rb', line 9

def render(entry)
  [
    title(entry),
    body(entry),
  ].reject(&:empty?).join("\n")
end