prose to format markdown

This commit is contained in:
Torsten 2022-12-28 12:18:06 +02:00
parent e671447931
commit 0c2475de16
9 changed files with 11 additions and 11 deletions

View File

@ -3,7 +3,7 @@
.max-w-prose.px-4.py-16{ options(section , :text_align)}
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
= section.header
%p.mt-4.text-lg.pt-10
%p.prose.mt-4.text-lg.pt-10
= markdown(section)
- template = "merged/view/cards/" + section.card_template
.grid{ column_option(section)}

View File

@ -5,7 +5,7 @@
.mx-auto.max-w-xl{ options(section , :color, :text_align)}
%h2.text-2xl.font-bold.md:text-5xl
= section.header
%p.hidden.sm:mt-4.sm:block.text-2xl
%p.prose.hidden.sm:mt-4.sm:block.text-2xl
= markdown(section)
.mt-4.md:mt-8
-if section.has_option?("button_text")

View File

@ -6,5 +6,5 @@
-if section.has_option?("subheader")
%h4.text-xl.mt-10.md:text-2xl
= section.option("subheader")
%p.mt-4.text-lg.pt-10
.prose.mt-4.text-lg.pt-10
= markdown(section)

View File

@ -8,11 +8,11 @@
-if section.has_option?("subheader")
%h4.text-xl.mt-10.md:text-2xl
= section.option("subheader")
%p.mt-8.md:block
%p.prose.mt-8.md:block
= markdown(section)
-if section.has_option?("text")
%p.mt-8.md:block
= section.option("text")
%p.prose.mt-8.md:block
= markdown section.option("text")
-if section.has_option?("button_text")
.mt-8.md:mt-8
= render 'merged/view/elements/button' , section: section

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= markdown(section)
%p.prose.mt-3= markdown(section)

View File

@ -5,5 +5,5 @@
.relative.w-full.m-2.p-4
%h3.text-lg
= card.header
%p.mt-1.text-xs.font-medium
%p.prose.mt-1.text-xs.font-medium
= 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= markdown(card)
%p.prose.m-10= markdown(card)

View File

@ -3,5 +3,5 @@
%h3.p-5.text-2xl.bg-gray-100.text-black.font-bold{ text_align_option(card)}= card.header
%div.h-full{background_option(card)}
.p-5{options(card , :text_align , :color)}
%p.m-2.text-sm.leading-relaxed.line-clamp-3
%p.prose.m-2.text-sm.leading-relaxed.line-clamp-3
= 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= markdown(card)
%p.pose.mt-2.p-4= markdown(card)