From 370f3b14faa632d21d233292e70bbc81b61b0df9 Mon Sep 17 00:00:00 2001
From: FloatingGhost <hannah@coffee-and-dreams.uk>
Date: Fri, 1 Jul 2022 13:50:14 +0100
Subject: [PATCH] fix search rendering

---
 src/components/mfm_content/mfm_content.jsx | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/components/mfm_content/mfm_content.jsx b/src/components/mfm_content/mfm_content.jsx
index b6dd314e..667d1b47 100644
--- a/src/components/mfm_content/mfm_content.jsx
+++ b/src/components/mfm_content/mfm_content.jsx
@@ -265,6 +265,13 @@ export default defineComponent({
           })]
         }
 
+        case 'search': {
+          return [h('a', {
+            href: `https://www.google.com/search?q=${token.props.query}`
+          }, token.props.content)
+          ]
+        }
+
         default: {
           console.error('unrecognized ast type:', token.type)