about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--frontend/static/style.css4
-rw-r--r--frontend/templates/blocks/packages.gotmpl6
-rw-r--r--internal/importer/package.go2
-rw-r--r--internal/nix/package.go2
4 files changed, 11 insertions, 3 deletions
diff --git a/frontend/static/style.css b/frontend/static/style.css
index c8d8cf6..ff4cc6e 100644
--- a/frontend/static/style.css
+++ b/frontend/static/style.css
@@ -125,3 +125,7 @@ h3 {
   font-size: 1.25rem;
   display: inline-block;
 }
+
+blockquote > p {
+  margin: unset;
+}
diff --git a/frontend/templates/blocks/packages.gotmpl b/frontend/templates/blocks/packages.gotmpl
index b6e4584..90ba0b2 100644
--- a/frontend/templates/blocks/packages.gotmpl
+++ b/frontend/templates/blocks/packages.gotmpl
@@ -11,7 +11,11 @@
             {{- end }}
           </h3>
         </summary>
-        <p>{{ or .LongDescription .Description }}</p>
+        {{- if .LongDescription }}
+          {{ markdown .LongDescription }}
+        {{- else }}
+          <p>{{ .Description }}</p>
+        {{- end }}
         <dl>
           {{- with .MainProgram }}
             <dt>Main Program</dt>
diff --git a/internal/importer/package.go b/internal/importer/package.go
index b3d2bac..c10a96d 100644
--- a/internal/importer/package.go
+++ b/internal/importer/package.go
@@ -234,7 +234,7 @@ func (i *PackageIngester) Process(parent context.Context) (<-chan nix.Importable
 				Version:         i.pkg.Version,
 				Broken:          i.pkg.Meta.Broken,
 				Description:     i.pkg.Meta.Description,
-				LongDescription: i.pkg.Meta.LongDescription,
+				LongDescription: nix.Markdown(i.pkg.Meta.LongDescription),
 				Homepages:       i.pkg.Meta.Homepages,
 				MainProgram:     i.pkg.Meta.MainProgram,
 				Platforms:       i.pkg.Meta.Platforms,
diff --git a/internal/nix/package.go b/internal/nix/package.go
index 813b2f0..6ddde66 100644
--- a/internal/nix/package.go
+++ b/internal/nix/package.go
@@ -9,7 +9,7 @@ type Package struct {
 	Description     string
 	Homepages       []string
 	Licenses        []License
-	LongDescription string
+	LongDescription Markdown
 	MainProgram     string
 	Maintainers     []Maintainer
 	PackageSet      string