From d72facf06267be3d9c873be22ccbde82a9aae55a Mon Sep 17 00:00:00 2001 From: sharevb Date: Fri, 9 Aug 2024 21:19:23 +0200 Subject: [PATCH] feat(new tool): Paste as Markdown --- src/tools/index.ts | 2 ++ src/tools/paste-as-markdown/index.ts | 12 ++++++++++++ src/tools/paste-as-markdown/paste-as-markdown.vue | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 src/tools/paste-as-markdown/index.ts create mode 100644 src/tools/paste-as-markdown/paste-as-markdown.vue diff --git a/src/tools/index.ts b/src/tools/index.ts index aa861c93..41d846c2 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -6,6 +6,7 @@ import { tool as asciiTextDrawer } from './ascii-text-drawer'; import { tool as textToUnicode } from './text-to-unicode'; import { tool as safelinkDecoder } from './safelink-decoder'; +import { tool as pasteAsMarkdown } from './paste-as-markdown'; import { tool as pdfSignatureChecker } from './pdf-signature-checker'; import { tool as numeronymGenerator } from './numeronym-generator'; import { tool as macAddressGenerator } from './mac-address-generator'; @@ -172,6 +173,7 @@ export const toolsByCategory: ToolCategory[] = [ textDiff, numeronymGenerator, asciiTextDrawer, + pasteAsMarkdown, ], }, { diff --git a/src/tools/paste-as-markdown/index.ts b/src/tools/paste-as-markdown/index.ts new file mode 100644 index 00000000..62e9dda1 --- /dev/null +++ b/src/tools/paste-as-markdown/index.ts @@ -0,0 +1,12 @@ +import { Markdown } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Paste as Markdown', + path: '/paste-as-markdown', + description: 'Paste clipboard content as Markdown', + keywords: ['paste', 'markdown'], + component: () => import('./paste-as-markdown.vue'), + icon: Markdown, + createdAt: new Date('2024-07-14'), +}); diff --git a/src/tools/paste-as-markdown/paste-as-markdown.vue b/src/tools/paste-as-markdown/paste-as-markdown.vue new file mode 100644 index 00000000..b3c8b2e3 --- /dev/null +++ b/src/tools/paste-as-markdown/paste-as-markdown.vue @@ -0,0 +1,12 @@ + + +