From b3f18437db4b12601a284c95b81048c9d2e1c0ec Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 23 Mar 2018 21:13:04 +0100 Subject: [PATCH] Added markdown render --- pages/companies/popular.pixy | 2 +- pages/companies/popular.scarlet | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/companies/popular.pixy b/pages/companies/popular.pixy index 8d534a32..00c2a04d 100644 --- a/pages/companies/popular.pixy +++ b/pages/companies/popular.pixy @@ -17,7 +17,7 @@ component PopularCompaniesScrollable(companies []*arn.Company, companyToAnime ma Icon("building") span.popular-company-name= company.Name.English - p.popular-company-body.popular-company-description(href=company.Link())= company.Description + .popular-company-body.popular-company-description!= markdown.Render(company.Description) .popular-company-footer .company-anime diff --git a/pages/companies/popular.scarlet b/pages/companies/popular.scarlet index b0309e05..4f1d56f9 100644 --- a/pages/companies/popular.scarlet +++ b/pages/companies/popular.scarlet @@ -1,4 +1,4 @@ -const popular-company-height = 250px +const popular-company-height = 246px .popular-companies horizontal-wrap @@ -26,6 +26,10 @@ const popular-company-height = 250px .popular-company-description clip-long-text + margin-top 0.4rem + + p + display inline .popular-company-icon //