mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-03 10:00:17 +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
@@ -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