Skip to content

Commit f9c4d34

Browse files
committed
Merge branch 'feat/md-toc-generator' into chore/all-my-stuffs
# Conflicts: # components.d.ts # pnpm-lock.yaml # src/components/TextareaCopyable.vue # src/tools/index.ts
2 parents d2749f1 + 7869914 commit f9c4d34

File tree

6 files changed

+705
-0
lines changed

6 files changed

+705
-0
lines changed

src/tools/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { tool as luhnValidator } from './luhn-validator';
2828
import { tool as maliciousLinksTester } from './malicious-links-tester';
2929
import { tool as mathFormatsConverter } from './math-formats-converter';
3030
import { tool as mathOcr } from './math-ocr';
31+
import { tool as markdownTocGenerator } from './markdown-toc-generator';
3132

3233
import { tool as cssXpathConverter } from './css-xpath-converter';
3334
import { tool as cssSelectorsMemo } from './css-selectors-memo';
@@ -195,6 +196,7 @@ export const toolsByCategory: ToolCategory[] = [
195196
hddCalculator,
196197
jsonToCsharp,
197198
jsonToGo,
199+
markdownTocGenerator,
198200
],
199201
},
200202
{
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Table } from '@vicons/tabler';
2+
import { defineTool } from '../tool';
3+
4+
export const tool = defineTool({
5+
name: 'Markdown toc generator',
6+
path: '/markdown-toc-generator',
7+
description: 'Generate a TOC from a markdown file/content',
8+
keywords: ['markdown', 'md', 'toc', 'generator'],
9+
component: () => import('./markdown-toc-generator.vue'),
10+
icon: Table,
11+
createdAt: new Date('2024-05-11'),
12+
});
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare module 'markdown-contents'{
2+
declare class MarkdownContents {
3+
markdown(): string;
4+
}
5+
export default function Create(markdown: string):MarkdownContents;
6+
}

0 commit comments

Comments
 (0)