A Chrome extension that formats the content of text input fields and text areas as Markdown using Prettier when the Alt+L
(or Cmd+Opt+L
on macOS) keyboard shortcut is pressed.
- Formats the text inside text input fields or text areas using Prettier's Markdown formatting.
- Works on all websites.
- Supports platform-specific keybindings:
- macOS:
Cmd + Option + Semi-colon
- Windows/Linux:
Ctrl + Alt + Semi-colon
- macOS:
https://chromewebstore.google.com/detail/markdown-formatter-using/gankejkdaggcgldemjbpnjhfcpijnlcd
-
Clone or download this repository.
git clone https://github.com/mkusaka/markdown-formatter-chrome-extension.git cd text-format-prettier-extension
-
Install dependencies using
pnpm
:pnpm install
-
Build the extension:
pnpm run build
-
Open Chrome and go to
chrome://extensions/
. -
Enable Developer mode (toggle in the top-right corner).
-
Click Load unpacked and select the
dist
folder from the project.
- Focus on a text input field or textarea in your browser.
- Press the key combination:
- macOS:
Cmd + Option + Semi-colon
- Windows/Linux:
Ctrl + Alt + Semi-colon
- macOS:
- The content will be automatically formatted as Markdown using Prettier.
To make changes or develop further, follow these steps:
-
Make your changes to the source code in the
src/
directory. -
Rebuild the extension:
pnpm run build
-
Reload the extension in Chrome via the
chrome://extensions/
page by clicking the Reload button.
This project is licensed under the MIT License. See the LICENSE file for details.