An open API service indexing awesome lists of open source software.

https://github.com/realazthat/mdreftidy

CLI to tidy ({renumber,move-to-bottom,sort,clean}) up {image,link} references for markdown
https://github.com/realazthat/mdreftidy

cli links links-management markdown preprocessor readme

Last synced: 19 days ago
JSON representation

CLI to tidy ({renumber,move-to-bottom,sort,clean}) up {image,link} references for markdown

Awesome Lists containing this project

README

        

@font-face {
font-family: "Fira Code";
src: local("FiraCode-Regular"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Regular.woff2") format("woff2"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Regular.woff") format("woff");
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: "Fira Code";
src: local("FiraCode-Bold"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Bold.woff2") format("woff2"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Bold.woff") format("woff");
font-style: bold;
font-weight: 700;
}
.terminal-3205043876-matrix {
font-family: Fira Code, monospace;
font-size: 20px;
line-height: 24.4px;
font-variant-east-asian: full-width;
}
.terminal-3205043876-title {
font-size: 18px;
font-weight: bold;
font-family: arial;
}
.terminal-3205043876-r1 { fill: #d9d9d9 }
.terminal-3205043876-r2 { fill: #ff8700 }
.terminal-3205043876-r3 { fill: #808080 }
.terminal-3205043876-r4 { fill: #58d1eb }
.terminal-3205043876-r5 { fill: #00af87 }

$ python -m mdreftidy.cli --help

Usage:
python -m mdreftidy.cli
 [
-h
] [
-i
] [
-o
OUTPUT
] [
--renumber
] [
--remove-unused
] [
--move-to-bottom
] [
--sort-ref-blocks
] [
-c
] [
--version

input

CLI to tidy ({renumber,move-to-bottom,sort,clean}) up {image,link} references for markdown.

Positional Arguments:

input
Input markdown file, use "-" for stdin.

Optional Arguments:

-h

--help
show this help message and exit

-i

--inplace
Update the file in place. Default: False.

-o

--output
OUTPUT
Output markdown file, use "-" for stdout. Default: stdout.

--renumber
Renumber reference definitions.

--remove-unused
Remove unused reference definitions.

--move-to-bottom
Move reference definitions to the bottom of the file.

--sort-ref-blocks
Sort all blocks of references.

-c

--check
Return non-zero if there are any changes. Nothing is output.

--version
Show the version and exit.