diff --git a/app/views/merged/view/_section_cards.haml b/app/views/merged/view/_section_cards.haml index e5d56f2..4ab3ef6 100644 --- a/app/views/merged/view/_section_cards.haml +++ b/app/views/merged/view/_section_cards.haml @@ -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)} diff --git a/app/views/merged/view/_section_full_image.haml b/app/views/merged/view/_section_full_image.haml index 580b880..6798603 100644 --- a/app/views/merged/view/_section_full_image.haml +++ b/app/views/merged/view/_section_full_image.haml @@ -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") diff --git a/app/views/merged/view/_section_full_up.haml b/app/views/merged/view/_section_full_up.haml index f77770c..826755b 100644 --- a/app/views/merged/view/_section_full_up.haml +++ b/app/views/merged/view/_section_full_up.haml @@ -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) diff --git a/app/views/merged/view/_section_half_image.haml b/app/views/merged/view/_section_half_image.haml index c151c9b..64b9252 100644 --- a/app/views/merged/view/_section_half_image.haml +++ b/app/views/merged/view/_section_half_image.haml @@ -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 diff --git a/app/views/merged/view/_section_large_image.haml b/app/views/merged/view/_section_large_image.haml index 5a4458f..c9939fe 100644 --- a/app/views/merged/view/_section_large_image.haml +++ b/app/views/merged/view/_section_large_image.haml @@ -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) diff --git a/app/views/merged/view/cards/_card_full_image.haml b/app/views/merged/view/cards/_card_full_image.haml index 6591a39..e28c789 100644 --- a/app/views/merged/view/cards/_card_full_image.haml +++ b/app/views/merged/view/cards/_card_full_image.haml @@ -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) diff --git a/app/views/merged/view/cards/_card_gap_square.haml b/app/views/merged/view/cards/_card_gap_square.haml index bdea508..59f9be3 100644 --- a/app/views/merged/view/cards/_card_gap_square.haml +++ b/app/views/merged/view/cards/_card_gap_square.haml @@ -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) diff --git a/app/views/merged/view/cards/_card_normal_round.haml b/app/views/merged/view/cards/_card_normal_round.haml index 761a92b..0700d5e 100644 --- a/app/views/merged/view/cards/_card_normal_round.haml +++ b/app/views/merged/view/cards/_card_normal_round.haml @@ -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) diff --git a/app/views/merged/view/cards/_card_normal_square.haml b/app/views/merged/view/cards/_card_normal_square.haml index 3a9fc8e..8c25e30 100644 --- a/app/views/merged/view/cards/_card_normal_square.haml +++ b/app/views/merged/view/cards/_card_normal_square.haml @@ -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)