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
- Host: GitHub
- URL: https://github.com/realazthat/mdreftidy
- Owner: realazthat
- License: mit
- Created: 2024-05-03T11:04:24.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-20T01:44:01.000Z (8 months ago)
- Last Synced: 2025-04-21T15:17:51.217Z (about 1 month ago)
- Topics: cli, links, links-management, markdown, preprocessor, readme
- Language: Python
- Homepage:
- Size: 373 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.help.generated.svg
- Funding: .github/FUNDING.yml
- License: LICENSE.md
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
]
inputCLI 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.