Text Alignment is a plugin for Obsidian that provides a convenient way to justify text with a single click.
- Adds a status bar item with a "Justify" button.
- Clicking the "Justify" button in the status bar applies text alignment to the active Markdown view.
- Supports text alignment for paragraphs, excluding code blocks, headings, and bullet points.
-
Download the latest release from the GitHub releases page.
-
Extract the ZIP file into your Obsidian vault's plugins folder. The folder structure should look like this:
vault
└── .obsidian
└── plugins
└── text-alignment-plugin
├── main.js
├── styles.css
└── manifest.json
3. Enable the plugin in Obsidian's settings.
- After installing the plugin, a "Justify" button will appear in the status bar.
- Click the "Justify" button to apply text alignment to the active Markdown view.
If you want to contribute or modify the plugin:
- Clone this repository.
- Run
npm i
to install dependencies. - Make your changes to the
main.ts
file. - Run
npm run dev
to compile the TypeScript code. - Reload Obsidian to see your changes.
If you encounter any issues or have suggestions, feel free to open an issue.
This plugin is licensed under the MIT License.