mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
feat(new tool): Markdown Table Prettifier
This commit is contained in:
1 parent
a0beb74601
commit
ab7f046386
5 files changed
+10979
-13948
No files matched your search
+2
-2
@@ -157,7 +157,6 @@
|
||||
"htmlfy": "^0.8.1",
|
||||
"hyparquet": "^1.9.0",
|
||||
"hyparquet-compressors": "^1.0.0",
|
||||
"iarna-toml-esm": "^3.0.5",
|
||||
"ibantools": "^4.5.1",
|
||||
"ical-generator": "^8.1.1",
|
||||
"ical.js": "^2.2.0",
|
||||
@@ -210,6 +209,7 @@
|
||||
"markdown-it-sanitizer": "^0.4.3",
|
||||
"markdown-it-sub": "^2.0.0",
|
||||
"markdown-it-sup": "^2.0.0",
|
||||
"markdown-table-prettify": "^3.6.0",
|
||||
"marked": "^10.0.0",
|
||||
"mathjs": "^14.5.3",
|
||||
"md-editor-v3": "^4.21.3",
|
||||
@@ -377,11 +377,11 @@
|
||||
"unocss-preset-scrollbar": "^0.2.1",
|
||||
"unplugin-icons": "^0.17.0",
|
||||
"unplugin-vue-components": "^0.25.0",
|
||||
"unplugin-vue-markdown": "^29.1.0",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-node-polyfills": "^0.23.0",
|
||||
"vite-plugin-pwa": "^1.0.1",
|
||||
"vite-plugin-splash-screen": "^0.2.0",
|
||||
"unplugin-vue-markdown": "^29.1.0",
|
||||
"vite-plugin-wasm": "^3.4.1",
|
||||
"vite-svg-loader": "^4.0.0",
|
||||
"vitest": "^0.34.6",
|
||||
|
||||
Generated
+10931
-13946
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,13 @@
|
||||
import { Markdown } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Markdown Table Prettifier',
|
||||
path: '/markdown-table-prettifier',
|
||||
description: 'Prettify markdown tables',
|
||||
keywords: ['markdown', 'table', 'prettifier'],
|
||||
component: () => import('./markdown-table-prettifier.vue'),
|
||||
icon: Markdown,
|
||||
createdAt: new Date('2025-08-15'),
|
||||
category: 'Markdown',
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
<script setup lang="ts">
|
||||
import { CliPrettify } from 'markdown-table-prettify';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const inputMarkdown = ref('');
|
||||
const outputMarkdown = computed(() => {
|
||||
return CliPrettify.prettify(inputMarkdown.value);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="inputMarkdown"
|
||||
multiline raw-text
|
||||
placeholder="Your Markdown table to prettify"
|
||||
rows="8"
|
||||
autofocus
|
||||
label="Markdown table to prettify"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<n-form-item label="Prettified Markdown">
|
||||
<TextareaCopyable :value="outputMarkdown" :word-wrap="true" language="markdown" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,5 @@
|
||||
declare module 'markdown-table-prettify' {
|
||||
class CliPrettify {
|
||||
static prettify(input: string): string;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user