Skip to content

hipstersmoothie/obsidian-plugin-prettier

Repository files navigation

obsidian-plugin-prettier

Format notes using prettier.

This plugin exposes the following commands:

Action Hotkey
Format the entire note Blank by default
Format the just the selection Blank by default

And the following settings:

Setting Default
Format on Save false
Format code block false

Add the following to your note's front-matter to enable this plugin for a specific file.

---
plugin-prettier: true
---

Installing

Either install the latest release from Obsidian directly or unzip the latest release into your <vault>/.obsidian/plugins/ folder.

Once the plugin is installed, you need to make sure that the switch for "Prettier Format" is turned on. After you are all setup you would see this plugins commands in the command palette (CMD + P). You can assign the commands to hotkeys for easy usage.