
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github.com/warky-devs/go-mdtopdf-helper
A command-line tool that automatically converts Markdown files to PDF using wkhtmltopdf. Perfect for maintaining PDF documentation alongside your Markdown files in Git repositories.
This tool requires wkhtmltopdf to be installed on your system. The application will check for its presence in standard installation locations:
C:\Program Files\wkhtmltopdf\bin
/usr/local/bin/wkhtmltopdf
or /usr/bin/wkhtmltopdf
/usr/local/bin/wkhtmltopdf
or via HomebrewIf wkhtmltopdf is not found, you will be prompted to install it.
go get github.com/Warky-Devs/go-mdtopdf-helper
Convert Markdown files in the current directory:
go-mdtopdf-helper
go-mdtopdf-helper [options]
Options:
-dir string
Directory to scan for markdown files (default ".")
-recursive
Scan directories recursively (default true)
-parallel
Convert files in parallel (default true)
-hook
Run as git pre-commit hook
To use as a Git pre-commit hook:
pre-commit
in your repository's .git/hooks/
directory#!/bin/sh
go-mdtopdf-helper -hook
chmod +x .git/hooks/pre-commit
When enabled as a pre-commit hook, the tool will:
The generated PDFs are configured with:
Contributions are welcome! Please feel free to submit a Pull Request. Here's how you can contribute:
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)go mod download
go test ./...
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Unknown package
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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.