From f68872c09f011b12db9de360eb852010bd07ed79 Mon Sep 17 00:00:00 2001
From: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date: Mon, 29 Jan 2024 07:38:59 +0000
Subject: [PATCH] feat(icon): update content for gfm links (#751)
---
quartz/styles/base.scss | 1 -
quartz/plugins/transformers/gfm.ts | 32 ++++++++++++++++++++++++++++++--
2 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/quartz/plugins/transformers/gfm.ts b/quartz/plugins/transformers/gfm.ts
index 40c2205..7860f85 100644
--- a/quartz/plugins/transformers/gfm.ts
+++ b/quartz/plugins/transformers/gfm.ts
@@ -37,8 +37,36 @@
"data-no-popover": true,
},
content: {
- type: "text",
- value: " ยง",
+ type: "element",
+ tagName: "svg",
+ properties: {
+ width: 18,
+ height: 18,
+ viewBox: "0 0 24 24",
+ fill: "none",
+ stroke: "currentColor",
+ "stroke-width": "2",
+ "stroke-linecap": "round",
+ "stroke-linejoin": "round",
+ },
+ children: [
+ {
+ type: "element",
+ tagName: "path",
+ properties: {
+ d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
+ },
+ children: [],
+ },
+ {
+ type: "element",
+ tagName: "path",
+ properties: {
+ d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
+ },
+ children: [],
+ },
+ ],
},
},
],
diff --git a/quartz/styles/base.scss b/quartz/styles/base.scss
index d597ba7..65e68f3 100644
--- a/quartz/styles/base.scss
+++ b/quartz/styles/base.scss
@@ -276,7 +276,6 @@
opacity: 0;
transition: opacity 0.2s ease;
transform: translateY(-0.1rem);
- display: inline-block;
font-family: var(--codeFont);
user-select: none;
}
--
Gitblit v1.10.0