all text markdown with redcarpet

This commit is contained in:
2022-12-08 19:34:49 +02:00
parent 308b9e1d2e
commit c669cf5cfe
14 changed files with 32 additions and 13 deletions

View File

@ -4,7 +4,7 @@
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
= section.header
%p.mt-4.text-lg.pt-10
= section.text
= markdown(section)
- template = "merged/view/cards/" + section.card_template
.grid{ column_option(section)}
- section.cards.each do |card|

View File

@ -11,7 +11,7 @@
%h2.text-2xl.font-bold.md:text-5xl
= section.header
%p.hidden.sm:mt-4.sm:block.text-2xl
= section.text
= markdown(section)
.mt-4.md:mt-8
-if section.has_option?("button_text")
= render 'merged/view/elements/button' , section: section

View File

@ -7,4 +7,4 @@
%h4.text-xl.mt-10.md:text-2xl
= section.option("subheader")
%p.mt-4.text-lg.pt-10
= section.text.html_safe
= markdown(section)

View File

@ -9,6 +9,4 @@
.lg:py-16
%article.space-y-4.text-gray-600
%p
= section.text
%p
= section.text
= markdown(section)

View File

@ -9,7 +9,7 @@
%h4.text-xl.mt-10.md:text-2xl
= section.option("subheader")
%p.mt-8.md:block
= section.text
= markdown(section)
-if section.has_option?("text")
%p.mt-8.md:block
= section.option("text")

View File

@ -8,4 +8,4 @@
-if section.has_option?("subheader")
%h4.text-xl.mt-10.md:text-2xl
= section.option("subheader")
%p.mt-3= section.text
%p.mt-3= markdown(section)

View File

@ -6,4 +6,4 @@
%h3.text-lg
= card.header
%p.mt-1.text-xs.font-medium
= card.text
= markdown(card)

View File

@ -5,4 +5,4 @@
%h3.p-4.mt-10.text-3xl.font-bold= card.header
-if card.has_option?("subheader")
%h4.p-4.text-xl= card.option("subheader")
%p.m-10= card.text
%p.m-10= markdown(card)

View File

@ -4,4 +4,4 @@
%h3.p-4.text-2xl.font-bold= card.header
-if card.has_option?("subheader")
%h4.p-4.text-xl= card.option("subheader")
%p.mt-2.p-4= card.text
%p.mt-2.p-4= markdown(card)