From d6a045f96bb5e00f9791d0f346ea277320a5320b Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Tue, 4 Jul 2023 23:17:47 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(twitter)=20implement=20tweets=20in?= =?UTF-8?q?=20notes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FluxNote.vue | 123 +++++++++++----------- src/components/StackedNote.vue | 10 +- src/hooks/useMarkdown.hook.ts | 2 + src/shims-vue.d.ts | 1 + src/utils/markdown/markdown-it-regexp.ts | 51 +++++++++ src/utils/markdown/markdown-it-twitter.ts | 10 ++ src/utils/twitter.ts | 8 ++ 7 files changed, 140 insertions(+), 65 deletions(-) create mode 100644 src/utils/markdown/markdown-it-regexp.ts create mode 100644 src/utils/markdown/markdown-it-twitter.ts diff --git a/src/components/FluxNote.vue b/src/components/FluxNote.vue index 3666d01..cfcd468 100644 --- a/src/components/FluxNote.vue +++ b/src/components/FluxNote.vue @@ -1,69 +1,23 @@ - - + +