From b9e2fd258953c0208db8bfc0b8385755326054a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abigail=20Magalh=C3=A3es?= Date: Thu, 7 Oct 2021 20:58:02 -0300 Subject: [PATCH] =?UTF-8?q?hotfix:=20pre=20=E2=86=92=20span?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/example.html | 4 ++-- src/Main.hs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/example.html b/example/example.html index 61ebba5..cba68d9 100644 --- a/example/example.html +++ b/example/example.html @@ -1,9 +1,9 @@

This is a literate Agda file.

Here’s some inline code:

record Record : Set where
   constructor hey-look
diff --git a/src/Main.hs b/src/Main.hs
index 349248e..c89b492 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -45,11 +45,11 @@ link _ x = x
 
 renderReference :: Reference -> Text -> Text
 renderReference (Reference href cls) t =
-  renderTags [ TagOpen "pre" [("class", "Agda")]
+  renderTags [ TagOpen "span" [("class", "Agda")]
              , TagOpen "a" [("href", href), ("class", cls)]
              , TagText t
              , TagClose "a"
-             , TagClose "pre"
+             , TagClose "span"
              ]
 
 data Reference =