
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
markdown-preprocessor
Advanced tools
A preprocessor for markdown designed to make document sites for Github Pages
A preprocessor for markdown designed to make document sites for Github Pages. It extends gitdown.
npm i markdown-preprocessor
See the gitdown usage for the gitdown features.
markdown-preprocessor --src ./src --dest ./docs --home-url https://example.com --generate-index --generate-header --generate-footer --remove-link-fileext
url
: The url for the image.link
(optional): Clickable link for the image.alt
(optional): Alt text for the image.center
(optional): Center the image. Default is true.{"gitdown": "image", "url": "https://search.chow.com/thumbnail/640/0/www.chowstatic.com/assets/2014/12/10836_creamy_tomato_soup_original_3000_2.jpg"}
Generates:
key
or url
:key
(optional): The video key for the youtube video.url
(optional): The url for the youtube video.timestamps
(optional): An array of strings (eg "0m10s:a note") with timestamps for the video, generates a table with links to the time codes.collapse
(optional): Wrap the video in a collapsible bar.With a key
{"gitdown": "video:youtube", "key": "Dvi8P-lhJmE"}
With a full url and hidden under a collapse
{"gitdown": "video:youtube", "url": "https://www.youtube.com/watch?v=Dvi8P-lhJmE", "collapse": true, "collapseSummary": "Every Matthew McConaughey "Alright" In Chronological Order (1993 - 2017)"}
// With timestamps
// Note see nested object parsing limitation,
// And Solution: https://stackoverflow.com/questions/26910402/regex-to-match-json-in-a-document/26910403
{"gitdown": "video:youtube", "key": "Dvi8P-lhJmE", "timestamps": [
"0m10s:a note",
"0m20s:another note",
"0m30s:yet another note"
]}
Generates:
url
: The url for the site.{"gitdown": "site:card", "url": "https://www.foundmyfitness.com/"}
Generates:
www.foundmyfitness.com
FoundMyFitness Promoting strategies to increase healthspan, well-being, cognitive and physical performance through deeper understandings of nutrition, genetics, and cell biology. ![]()
url
: The url for the site.{"gitdown": "site:embed", "url": "https://www.foundmyfitness.com/"}
Generates:
This is enabled by the cli command --generate-index
.
Your folder structure will be recursively walked and index.md
pages will be created for all folders populated with links to files and folders within.
Generates:
š ExampleFolder
š ExampleFile
This is enabled by the cli command --generate-header
.
Generates a header including the file name
This is enabled by the cli command --generate-footer
.
Generates a footer including navigation buttons.
This allows better linking in GitHub pages but will break any locally hosted links. Enabled via --remove-link-fileext
You can enable verbose logging with the --verbose
flag.
FAQs
A preprocessor for markdown designed to make document sites for Github Pages
The npm package markdown-preprocessor receives a total of 106 weekly downloads. As such, markdown-preprocessor popularity was classified as not popular.
We found that markdown-preprocessor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.