Skip to content

Commit d5f88be

Browse files
drakehanguyenDrakeNguyen
andauthored
Feature/sql formatter (#81)
* feat(formatters): add SQL formatter with validate, beautify, and minify - Add sql-formatter and node-sql-parser dependencies - Implement dialect-aware formatting with exact, proxy, and format-only validation - Register SqlFormatter under Formatters category Made-with: Cursor * feat(html-to-markdown): implement HTML to Markdown conversion tool - Added HtmlToMarkdown component for converting HTML to GitHub-flavored Markdown. - Integrated Turndown and turndown-plugin-gfm for robust HTML parsing and Markdown generation. - Created configuration options for heading styles, list markers, and code block styles. - Implemented clipboard functionality for easy HTML input. - Added tests to ensure accurate conversion and error handling. This tool enhances the text processing capabilities of the application, allowing users to easily convert HTML content into Markdown format. --------- Co-authored-by: DrakeNguyen <drake.ha.nguyen@gmail.com>
1 parent 388d413 commit d5f88be

13 files changed

Lines changed: 1401 additions & 0 deletions

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,18 @@
7474
"monaco-editor": "^0.55.1",
7575
"next": "^16.1.6",
7676
"next-themes": "^0.4.6",
77+
"node-sql-parser": "^5.4.0",
7778
"qr-scanner": "^1.4.2",
7879
"qrcode": "^1.5.4",
7980
"react": "^19.2.4",
8081
"react-dom": "^19.2.4",
8182
"react-window": "^2.2.7",
8283
"shiki": "^3.23.0",
84+
"sql-formatter": "^15.7.3",
8385
"tailwind-merge": "^3.5.0",
8486
"tailwindcss-animate": "^1.0.7",
87+
"turndown": "^7.2.4",
88+
"turndown-plugin-gfm": "^1.0.2",
8589
"uuid": "^13.0.0",
8690
"yaml": "^2.8.2"
8791
},
@@ -95,6 +99,7 @@
9599
"@types/node": "^20.19.37",
96100
"@types/react": "^19.2.14",
97101
"@types/react-dom": "^19.2.3",
102+
"@types/turndown": "^5.0.6",
98103
"@typescript-eslint/eslint-plugin": "^8.57.0",
99104
"@typescript-eslint/parser": "^8.57.0",
100105
"baseline-browser-mapping": "^2.10.8",

pnpm-lock.yaml

Lines changed: 113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)