mirror of
https://github.com/k0src/Obsidian-Auto-Close-Tags-Plugin.git
synced 2026-07-22 13:00:31 +00:00
No description
| .github/workflows | ||
| assets | ||
| src | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| .npmrc | ||
| esbuild.config.mjs | ||
| LICENSE | ||
| main.ts | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
Auto Close Tags
Automatically close HTML tags as you type in Obsidian.
Installation
Install from the Community Plugins section in Obsidian:
- Open Obsidian Settings
- Go to Community Plugins → Browse
- Search for "Auto Close Tags"
- Click Install and Enable
Features
- Auto-close on typing: Automatically adds closing tags when you type
> - Auto-close on paste: Works when pasting HTML content
- Manual closing: Use the "Close last unclosed tag" command (configurable hotkey)
- Smart detection: Handles nested tags and self-closing elements
- Exclude tags: Configure which tags to ignore in settings
- Code block awareness: Optionally ignore tags in code blocks and inline code
Settings
- Excluded tags: Comma-separated list of tags to ignore (e.g.,
div, span, i) - Cursor position: Place cursor between tags or after closing tag
- Ignore fenced code blocks: Skip auto-closing in
```code blocks - Ignore inline code: Skip auto-closing in
inline codespans
Development
npm install
npm run build
