An open API service indexing awesome lists of open source software.

https://github.com/hipstersmoothie/obsidian-plugin-prettier

Format obsidian.md notes using prettier
https://github.com/hipstersmoothie/obsidian-plugin-prettier

Last synced: 17 days ago
JSON representation

Format obsidian.md notes using prettier

Awesome Lists containing this project

README

        

# obsidian-plugin-prettier

Format notes using [prettier](https://prettier.io/).

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.

```yaml
---
plugin-prettier: true
---

```

## Installing

Either install the latest release from Obsidian directly or unzip the [latest release](https://github.com/hipstersmoothie/obsidian-plugin-prettier/releases/latest) into your `/.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.