Skip to content
Snippets Groups Projects
Commit df692054 authored by Marcia Ramos's avatar Marcia Ramos
Browse files

make a separate helper for Kramdown, keep the markdown helper intact

parent 537be36b
No related branches found
No related tags found
1 merge request!6116WIP: Markdown helper for Kramdown
Pipeline #
Loading
Loading
@@ -22,7 +22,11 @@ module CustomHelpers
h(content)
end
 
def markdown s
def markdown(text)
Tilt['markdown'].new { text }.render
end
def kramdown s
Kramdown::Document.new(s).to_html
end
 
Loading
Loading
Loading
Loading
@@ -73,7 +73,7 @@
%a{href: "/mvp/"} MVP
is
= link_to(mvp.fullname, "https://gitlab.com/#{mvp.gitlab}")
= markdown(mvp.description)
= kramdown(mvp.description)
 
/ top feature
%section#top-feature.release-post-section
Loading
Loading
@@ -95,7 +95,7 @@
%a{"title" => "GitLab Enterprise Edition Premium", "data-toggle" => "tooltip", "data-placement" => "top"}
%span{class: "#{available_in}"}
= "#{available_in}"
= markdown(top_feature.description)
= kramdown(top_feature.description)
%p
%i.fa.fa-book
%a{href: "#{top_feature.documentation_link}", target: "_blank"}
Loading
Loading
@@ -129,7 +129,7 @@
%a{"title" => "GitLab Enterprise Edition Premium", "data-toggle" => "tooltip", "data-placement" => "top"}
%span{class: "#{available_in}"}
= "#{available_in}"
= markdown(primary_feature.description)
= kramdown(primary_feature.description)
- if primary_feature.documentation_link != nil
%p
%i.fa.fa-book
Loading
Loading
@@ -165,7 +165,7 @@
%a{"title" => "GitLab Enterprise Edition Premium", "data-toggle" => "tooltip", "data-placement" => "top"}
%span{class: "#{available_in}"}
= "#{available_in}"
= markdown(primary_feature.description)
= kramdown(primary_feature.description)
- if primary_feature.documentation_link != nil
%p
%i.fa.fa-book
Loading
Loading
@@ -208,7 +208,7 @@
%a{"title" => "GitLab Enterprise Edition Premium", "data-toggle" => "tooltip", "data-placement" => "top"}
%span{class: "#{available_in}"}
= "#{available_in}"
= markdown(secondary_feature.description)
= kramdown(secondary_feature.description)
- if secondary_feature.image_url != nil
- if secondary_feature.image_noshadow == true
%img{:src => "#{secondary_feature.image_url}", :alt => "#{secondary_feature.name}"}/
Loading
Loading
@@ -244,7 +244,7 @@
%a{"title" => "GitLab Enterprise Edition Premium", "data-toggle" => "tooltip", "data-placement" => "top"}
%span{class: "#{available_in}"}
= "#{available_in}"
= markdown(secondary_feature.description)
= kramdown(secondary_feature.description)
- if secondary_feature.image_url != nil
- if secondary_feature.image_noshadow == true
%img{:src => "#{secondary_feature.image_url}", :alt => "#{secondary_feature.name}"}/
Loading
Loading
@@ -271,7 +271,7 @@
%h3{:id => "#{deprecation.feature_name.downcase.tr(" ", "-")}"}
%a.header-link{href: "##{deprecation.feature_name.downcase.tr(" ", "-")}"}
= deprecation.feature_name
= markdown(deprecation.description)
= kramdown(deprecation.description)
%p
Due:
%strong= "#{deprecation.due}"
Loading
Loading
@@ -282,7 +282,7 @@
%h2.text-center{:id => "barometer"}
%a.header-link{href: "#barometer"}
Upgrade barometer
= markdown(barometer.description)
= kramdown(barometer.description)
 
/last section
%section#about-gitlab.gray-section
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment