File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { tool as asciiTextDrawer } from './ascii-text-drawer';
6
6
7
7
import { tool as textToUnicode } from './text-to-unicode' ;
8
8
import { tool as safelinkDecoder } from './safelink-decoder' ;
9
+ import { tool as pasteAsMarkdown } from './paste-as-markdown' ;
9
10
import { tool as pdfSignatureChecker } from './pdf-signature-checker' ;
10
11
import { tool as numeronymGenerator } from './numeronym-generator' ;
11
12
import { tool as macAddressGenerator } from './mac-address-generator' ;
@@ -172,6 +173,7 @@ export const toolsByCategory: ToolCategory[] = [
172
173
textDiff ,
173
174
numeronymGenerator ,
174
175
asciiTextDrawer ,
176
+ pasteAsMarkdown ,
175
177
] ,
176
178
} ,
177
179
{
Original file line number Diff line number Diff line change
1
+ import { Markdown } from '@vicons/tabler' ;
2
+ import { defineTool } from '../tool' ;
3
+
4
+ export const tool = defineTool ( {
5
+ name : 'Paste as Markdown' ,
6
+ path : '/paste-as-markdown' ,
7
+ description : 'Paste clipboard content as Markdown' ,
8
+ keywords : [ 'paste' , 'markdown' ] ,
9
+ component : ( ) => import ( './paste-as-markdown.vue' ) ,
10
+ icon : Markdown ,
11
+ createdAt : new Date ( '2024-07-14' ) ,
12
+ } ) ;
Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ import { subscribe } from ' @github/paste-markdown' ;
3
+
4
+ // Subscribe the behavior to the textarea.
5
+ subscribe (document .querySelector (' .paste-zone textarea' ) as never );
6
+ </script >
7
+
8
+ <template >
9
+ <c-card title =" Paste in Markdown" class =" paste-zone" >
10
+ <textarea-copyable language =" markdown" />
11
+ </c-card >
12
+ </template >
You can’t perform that action at this time.
0 commit comments