dotfiles/.config/helix/scripts/format_markdown.fish

5 lines
105 B
Fish
Executable file

#!/bin/fish
cat | markdown-toc --bullets - --no-firsth1 - | dprint fmt --stdin md
# set -l input (cat)