npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

markdown-to-standalone-html

v2.1.1

Published

Markdown to standalone HTML converter. It generates a standalone HTML with all CSS and images embedded, browsable responsible TOC, math support (KATEX), code syntax highlighting (highlight.js), and rendering of lyrics with chords

Downloads

36

Readme

markdown-to-standalone-html

Markdown to standalone HTML converter. It generates a standalone HTML with all CSS and images embedded. A browsable TOC is automatically generated, a Bootstrap 4 layout is used to create a simple but responsive page display, math syntax is supported through (KATEX), and code syntax highlighting through highlight.js.

Install global with:

npm i -g markdown-to-standalone-html
Usage: markdown-to-standalone-html [options] <inputfile>

Options:
  -v, --version                         output the current version
  -A, --disable-all                     disable all plugins
  -B, --disable-bootstrap               disable embedding the bootstrap CSS in
                                        the generated html file
  -bj, --enable-bootstrap-js            enable embedding bootstrap JS files in
                                        the generated html file. It may be
                                        useful when using a custom theme
  -C, --disable-chords                  disable support for rendering lyrics
                                        with chords using chordsong
  -CC, --disable-code-chords            disable support for rendering lyrics
                                        with chords using code-chords
  -H, --disable-highlightjs             disable syntax highlighting of fenced
                                        code blocks with highlight.js
  -hs, --highlightjs-style <stylename>  set the highlight.js style. See
                                        https://github.com/highlightjs/highlight.js/tree/master/src/styles
                                        (default: "vs2015")
  -K, --disable-katex                   disable math support (prevents
                                        embedding the KaTeX CSS and fonts)
  -o, --output <outputfile>             set the output file name. If omitted
                                        the output filename is the input one
                                        with the extension switched to .html
  -t, --template <template>             force using a user-provided template
                                        instead of the default one. Generate
                                        two files yourtemplate.html and
                                        yourtemplate.toc.html. Take a look to
                                        template.html (no toc version) and
                                        template.toc.html (TOC version) for
                                        inspiration.
  -d, --toc-max-depth <depth>           the TOC will only use headings whose
                                        depth is at most maxdepth. A value of 0
                                        disables the TOC (default: "3")
  --toc-title <title>                   the title used for the TOC (default:
                                        "Table of contents")
  -h, --help                            display help for command

Examples

See example.md and its rendered version example.html