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 🙏

© 2026 – Pkg Stats / Ryan Hefner

paged-markdown-3

v0.2.1

Published

Document format for scientific writing based on Markdown.

Readme

npm version Example Document

Paged Markdown 3

Document format for scientific writing based on Markdown.

About

Paged Markdown 3 is an extension of the Markdown language, that adds new syntaxes for page-breaking, page-numbering, footnotes and more. Under the hood, it is using paged.js for content-pagination and implementing several W3C specifications for paged media.

The focus of the format is scientific writing, though it's most widely generic. Documents created in the format can be exported to PDF.

Getting started

To interact with Paged Markdown 3 documents, a Markdown-capable text editor is recommended (e.g. Atom or Visual Studio Code).

  1. Create a new markdown document (e.g. document.md)
  2. In the last line of your document, include Paged Markdown 3 as shown below:
    # Hello world
    
    --
    
    Page 2
    
    <script src="https://unpkg.com/paged-markdown-3/dist/paged.js"></script>
  3. Open the Markdown-preview of your editor.
    You should see your contents rendered into pages (if not you may need to enable Javascript).
    That's it! You've just created your first Paged Markdown 3 document.

To learn about the various syntaxes of the format, have a look at example/scientific-paper.md.

The format should work with any Markdown-capable editor of your choice. In case you experience editor-specific inconsistencies please open an issue.

Preview Security Warnings

When opening the Markdown-preview, you may be asked to "Enable insecure content in this document". This is due to Paged Markdown 3 being a javascript extension.

Paged Markdown 3 is open source software, you may review its source code on Codeberg or directly in the script loaded through unpkg.com. If you prefer to include the script locally from your machine, you can easily compile Paged Markdown 3 yourself.

Feature Roadmap

The following list contains features currently supported by Paged Markdown 3 or planned for future support:

  • [x] Manual page-breaks
  • [x] Page numbering
    • [x] Control over number styles among pages (currently decimal, roman or none)
  • [x] Table of contents
    • [x] Auto-detect and render tables, that look like tables of contents / figures / tables etc.
    • [x] Include page number of the referenced target automatically based on its location in the document
  • [x] Footnotes
  • [x] Figures with captions
  • [x] Tables (not yet: syntax for captions)
  • [x] PDF export
  • [x] Extensible theming
  • [x] Automatic Hyphenization (usage: enable using the lang-attribute)
  • [ ] IEEE-cite linter
  • [ ] Auto-generated bibliography
    • [ ] Maybe: Integration with Zotero

CSS Theming

As explained in the example document, the theming of Paged Markdown 3 documents can be adjusted through a user stylesheet file design.css, placed in the same directory as the Markdown document.

Besides user-theming and custom element definitions, design.css may contain global specifications about the document, such as the paper format, font-size and page margins (see example/design.css for reference).

PDF export

Documents created in Paged Markdown 3 can be exported to PDF using the pmd-pdf utility available on npm.

Usage:

> pmd-pdf <input.md> [output.pdf]

Development

Paged Markdown 3 is developed with buildtool.js.

To compile Paged Markdown 3 (namely paged.js, logic.css and preview.css), clone or download the latest version of the repository and run the following commands:

> npm install
> npm run build

For development, you may want to make use of the watch-feature of buildtool.js (rebuild on file changes).

You can do so by running:

> npm run dev

The compiled files will be produced inside dist/.

License

This project is licensed under the MIT-license.


Paged Markdown 3 – Lesosoftware, 2022 - 2025