diff --git a/src/tools/index.ts b/src/tools/index.ts index aa861c93..54bb0990 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -1,11 +1,10 @@ import { tool as base64FileConverter } from './base64-file-converter'; import { tool as base64StringConverter } from './base64-string-converter'; import { tool as basicAuthGenerator } from './basic-auth-generator'; - import { tool as asciiTextDrawer } from './ascii-text-drawer'; - import { tool as textToUnicode } from './text-to-unicode'; import { tool as safelinkDecoder } from './safelink-decoder'; +import { tool as markdownCheatsheet } from './markdown-cheatsheet'; import { tool as pdfSignatureChecker } from './pdf-signature-checker'; import { tool as numeronymGenerator } from './numeronym-generator'; import { tool as macAddressGenerator } from './mac-address-generator'; @@ -85,7 +84,19 @@ import { tool as yamlViewer } from './yaml-viewer'; export const toolsByCategory: ToolCategory[] = [ { name: 'Crypto', - components: [tokenGenerator, hashText, bcrypt, uuidGenerator, ulidGenerator, cypher, bip39, hmacGenerator, rsaKeyPairGenerator, passwordStrengthAnalyser, pdfSignatureChecker], + components: [ + tokenGenerator, + hashText, + bcrypt, + uuidGenerator, + ulidGenerator, + cypher, + bip39, + hmacGenerator, + rsaKeyPairGenerator, + passwordStrengthAnalyser, + pdfSignatureChecker, + ], }, { name: 'Converter', @@ -128,16 +139,23 @@ export const toolsByCategory: ToolCategory[] = [ httpStatusCodes, jsonDiff, safelinkDecoder, + asciiTextDrawer, ], }, { name: 'Images and videos', - components: [qrCodeGenerator, wifiQrCodeGenerator, svgPlaceholderGenerator, cameraRecorder], + components: [ + qrCodeGenerator, + wifiQrCodeGenerator, + svgPlaceholderGenerator, + cameraRecorder, + ], }, { name: 'Development', components: [ gitMemo, + markdownCheatsheet, randomPortGenerator, crontabGenerator, jsonViewer, @@ -152,15 +170,29 @@ export const toolsByCategory: ToolCategory[] = [ }, { name: 'Network', - components: [ipv4SubnetCalculator, ipv4AddressConverter, ipv4RangeExpander, macAddressLookup, macAddressGenerator, ipv6UlaGenerator], + components: [ + ipv4SubnetCalculator, + ipv4AddressConverter, + ipv4RangeExpander, + macAddressLookup, + macAddressGenerator, + ipv6UlaGenerator, + ], }, { name: 'Math', - components: [mathEvaluator, etaCalculator, percentageCalculator], + components: [ + mathEvaluator, + etaCalculator, + percentageCalculator], }, { name: 'Measurement', - components: [chronometer, temperatureConverter, benchmarkBuilder], + components: [ + chronometer, + temperatureConverter, + benchmarkBuilder, + ], }, { name: 'Text', @@ -176,7 +208,10 @@ export const toolsByCategory: ToolCategory[] = [ }, { name: 'Data', - components: [phoneParserAndFormatter, ibanValidatorAndParser], + components: [ + phoneParserAndFormatter, + ibanValidatorAndParser, + ], }, ]; diff --git a/src/tools/markdown-cheatsheet/index.ts b/src/tools/markdown-cheatsheet/index.ts new file mode 100644 index 00000000..e08b3ee4 --- /dev/null +++ b/src/tools/markdown-cheatsheet/index.ts @@ -0,0 +1,12 @@ +import { Markdown } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Markdown Cheat Sheet', + path: '/markdown-cheatsheet', + description: 'Markdown Cheat Sheet', + keywords: ['markdown', 'cheatsheet', 'memo'], + component: () => import('./markdown-cheatsheet.vue'), + icon: Markdown, + createdAt: new Date('2024-03-09'), +}); diff --git a/src/tools/markdown-cheatsheet/markdown-cheatsheet.vue b/src/tools/markdown-cheatsheet/markdown-cheatsheet.vue new file mode 100644 index 00000000..0889716b --- /dev/null +++ b/src/tools/markdown-cheatsheet/markdown-cheatsheet.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/src/tools/markdown-cheatsheet/md-memo.content.md b/src/tools/markdown-cheatsheet/md-memo.content.md new file mode 100644 index 00000000..ed78a417 --- /dev/null +++ b/src/tools/markdown-cheatsheet/md-memo.content.md @@ -0,0 +1,166 @@ +--- +layout: default +title: Markdown Cheat Sheet +description: A quick reference to the Markdown syntax. +last_modified_at: 2021-12-05 +--- + +## Overview + +This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can't cover every edge case, so if you need more information about any of these elements, refer to the reference guides for basic-syntax and extended-syntax. + +## Basic Syntax + +These are the elements outlined in John Gruber's original design document. All Markdown applications support these elements. + + + + + Element + Markdown Syntax + + + + + Heading + # H1
+ ## H2
+ ### H3
+ + + Bold + **bold text** + + + Italic + *italicized text* + + + Blockquote + > blockquote + + + Ordered List + + 1. First item
+ 2. Second item
+ 3. Third item
+
+ + + Unordered List + + + - First item
+ - Second item
+ - Third item
+
+ + + + Code + `code` + + + Horizontal Rule + --- + + + Link + [title](https://www.example.com) + + + Image + ![alt text](image.jpg) + + +
+ +## Extended Syntax + +These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements. + + + + + Element + Markdown Syntax + + + + + Table + + | Syntax | Description |
+ | ----------- | ----------- |
+ | Header | Title |
+ | Paragraph | Text | +
+ + + Fenced Code Block + ```
+ {
+   "firstName": "John",
+   "lastName": "Smith",
+   "age": 25
+ }
+ ``` +
+ + + Footnote + + Here's a sentence with a footnote. [^1]

+ [^1]: This is the footnote. +
+ + + Heading ID + ### My Great Heading {#custom-id} + + + Definition List + + term
+ : definition +
+ + + Strikethrough + ~~The world is flat.~~ + + + Task List + + - [x] Write the press release
+ - [ ] Update the website
+ - [ ] Contact the media +
+ + + Emoji
(see also Copying and Pasting Emoji) + + That is so funny! :joy: + + + + Highlight + + I need to highlight these ==very important words==. + + + + Subscript + + H~2~O + + + + Superscript + + X^2^ + + + +
\ No newline at end of file