Tries to fix and reformat ugly Markdown and adds things like 'modified date' etc.
The default hotkey is Ctrl+Alt+L
.
Say you have:
A #new and #exciting paragraph!
After 'Update fields':
---
tags:
- '#new'
- '#exciting'
---
A #new and #exciting paragraph!
Before:
I wrote this, but I don't remember when!
After:
---
date updated: '2020-11-23T16:47:37+01:00'
---
I wrote this, but I don't remember when!
Example
Before:
www.example.com, https://example.com, and contact@example.com.
After:
[www.example.com](http://www.example.com), <https://example.com>, and <contact@example.com>.
Normalizes ordered lists.
Example
Before:
1. foo
1. aaa
1. bbb
4. ccc
1. bar
1. baz
After:
1. foo
1. aaa
2. bbb
3. ccc
2. bar
3. baz
Normalizes table formatting.
Example
Before:
**A**|**B**|**C**
|---:|:---|---|
a |b |c
x |y |z
After:
| **A** | **B** | **C** |
| ----: | :---- | ----- |
| a | b | c |
| x | y | z |
First, install the dependencies with
npm i
Then, you can compile the plugin with:
npm run build
This will create a main.js
file in the project root. That is the entry point of your plugin.
Download zip archive from GitHub releases page.
Extract the archive into <vault>/.obsidian/plugins
.
Alternatively, using bash:
OBSIDIAN_VAULT_DIR=/path/to/your/obsidian/vault
mkdir -p $OBSIDIAN_VAULT_DIR/.obsidian/plugins
unzip ~/Downloads/obsidian-prettify-0.1.zip -d $OBSIDIAN_VAULT_DIR/.obsidian/plugins
- New Refactor tags functionality (ctrl+shift+o)
- Can add emoticons as tags
Fixed frontmatter bug
Added indent for lists Sets settings as recommended
Fixed a bug that escaped \ Added some feedback to the user
Enabled frontmatter and settings!
Included: remark-frontmatter
Added tests!
Included: remark-gfm and remark-images
Initial Release, just playing around for the first time with Obsidian and the plugins. No settings, Just the minimum possible
Pull requests are both welcome and appreciated. :)
if you want, you can also send me a coffee https://www.buymeacoffee.com/pelado