mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-21 21:44:40 +03:00
feat(new tool): Markdown to plain text
This commit is contained in:
1 parent
aa20dc19f7
commit
253231f40d
4 files changed
+47
No files matched your search
@@ -302,6 +302,7 @@
|
||||
"randexp": "^0.5.3",
|
||||
"regex": "^6.1.0",
|
||||
"rekcod": "^3.0.0",
|
||||
"remove-markdown": "^0.6.3",
|
||||
"resistor-data": "^1.1.1",
|
||||
"riimut": "^0.9.1",
|
||||
"roboto-base64": "^0.1.2",
|
||||
|
||||
Generated
+8
@@ -795,6 +795,9 @@ importers:
|
||||
rekcod:
|
||||
specifier: ^3.0.0
|
||||
version: 3.0.0
|
||||
remove-markdown:
|
||||
specifier: ^0.6.3
|
||||
version: 0.6.3
|
||||
resistor-data:
|
||||
specifier: ^1.1.1
|
||||
version: 1.1.1
|
||||
@@ -9783,6 +9786,9 @@ packages:
|
||||
engines: {node: '>=10'}
|
||||
hasBin: true
|
||||
|
||||
remove-markdown@0.6.3:
|
||||
resolution: {integrity: sha512-Qvp2p0Q1irE7AaJO7QemJe04HdObHylJrG+q4hszvPlYp7q4EvfINpEIaIEFdB+3XTDp1h6fiyT60ae00gmRow==}
|
||||
|
||||
remove-trailing-separator@1.1.0:
|
||||
resolution: {integrity: sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==}
|
||||
|
||||
@@ -21756,6 +21762,8 @@ snapshots:
|
||||
|
||||
rekcod@3.0.0: {}
|
||||
|
||||
remove-markdown@0.6.3: {}
|
||||
|
||||
remove-trailing-separator@1.1.0: {}
|
||||
|
||||
replace-ext@2.0.0: {}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { FileText } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Markdown to Text',
|
||||
path: '/markdown-to-text',
|
||||
description: 'Convert markdown to plain text',
|
||||
keywords: ['markdown', 'plain', 'text'],
|
||||
component: () => import('./markdown-to-text.vue'),
|
||||
icon: FileText,
|
||||
createdAt: new Date('2026-02-02'),
|
||||
category: 'Markdown',
|
||||
});
|
||||
@@ -0,0 +1,25 @@
|
||||
<script setup lang="ts">
|
||||
import removeMarkdown from 'remove-markdown';
|
||||
|
||||
const markdown = ref('');
|
||||
const plaintext = computed(() => {
|
||||
return removeMarkdown(markdown.value || '');
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="markdown"
|
||||
label="Input Mardown:"
|
||||
multiline
|
||||
placeholder="Enter your Markdown here..."
|
||||
rows="6"
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<c-card v-if="plaintext" title="Output text">
|
||||
<textarea-copyable :value="plaintext" />
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user