mirror of
https://tildegit.org/ben/dotfiles.git
synced 2025-03-31 10:13:21 +00:00
add markdown formatting function
This commit is contained in:
parent
4d88215734
commit
4da01f4b90
9
fish/.config/fish/functions/mdfmt.fish
Normal file
9
fish/.config/fish/functions/mdfmt.fish
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
function mdfmt
|
||||||
|
for md in $argv
|
||||||
|
pandoc \
|
||||||
|
-f markdown+yaml_metadata_block \
|
||||||
|
-t markdown+yaml_metadata_block \
|
||||||
|
--atx-headers \
|
||||||
|
-o $md $md
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user