![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A simple CLI to convert markdown files to HTML using GitHub API using the GitHub Markdown style.
ghmd (GitHub Markdown) is an extremely light-weight and simple command line tool to convert GitHub Flavored Markdown (or plain Markdown) to HTML.
It does so by using the GitHub Markdown API in combination with GitHub Markdown CSS.
pip install ghmd
Simply run ghmd
with the path to the markdown file(s) you want to convert. An HTML file will be created in the same directory as the markdown file with the same filename.
ghmd README.md
# or
ghmd README.md CONTRIBUTING.md
[!NOTE] If you don't have the
ghmd
command available after installing, you may need to add the Python scripts directory to your PATH environment variable.Otherwise you, can use
python -m ghmd
instead ofghmd
.
By default, ghmd uses unauthenticated requests to the GitHub API, which has a rate limit of 60 requests per hour. To increase this limit to 5000 requests per hour, you can set the GITHUB_TOKEN
environment variable with a GitHub personal access token:
export GITHUB_TOKEN=your_github_token_here
ghmd README.md
To create a personal access token, visit your GitHub Settings > Developer Settings > Personal access tokens and create a new token (no specific scopes are required).
--embed-css
By default, ghmd will add the remote CSS as a <link>
tag in the HTML file. If you want to embed the CSS directly into the HTML file so that, for example, you can send the HTML file to someone else and they can view it without an internet connection, you can use the --embed-css
option.
ghmd README.md --embed-css
--light
and --dark
The default CSS styles adapt to the system's dark mode setting of the reader. If you want to force the CSS to be light or dark, you can use the --light
or --dark
options.
ghmd README.md --light
# or
ghmd README.md --dark
Both --light
and --dark
can be used in combination with --embed-css
.
[!NOTE] Using the
--embed-css
option will result in a ~25 KB larger HTML file size (~18 KB when using--light
or--dark
).
--no-gfm
The tool offers two modes: GitHub Flavored Markdown (gfm, default) and plain Markdown. To use the later, the --no-gfm
option can be used:
ghmd README.md --no-gfm
FAQs
A simple CLI to convert markdown files to HTML using GitHub API using the GitHub Markdown style.
We found that ghmd demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.