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

pandoc-context-filters

v1.0.0

Published

Pandoc filters enhancing pandoc conversions to ConTeXt

Downloads

4

Readme

A pandoc filter to add figure references when going from markdown to ConTeXt

This filter can be used to generate figure references, if you follow certain conventions.

Build Status Greenkeeper badge

Prerequisites

First run npm install

then run npm test

hopefully that works and does something useful

Usage

In your context file, you could do:

%% how to translate markdown in this doc
\usemodule[filter]

\defineexternalfilter
  [markdown]
    [filtercommand={pandoc -t context --filter=node_modules/pandoc-context-filters/context-float-refs.js   \externalfilterinputfile\space -o \externalfilteroutputfile},
      directory=output]

...

\starttext
\processmarkdownfile{report.md}
\stoptext

Then in report.md, you need to follow a fairly simple convention. Just make sure to put the figure label in curly braces at the very end of the figure caption text. Like so:

If figures are your thing, you can see all the way down.
[Figure](#fig:ecdf.nb.am) shows morning CDF, and
[Figure](#fig:ecdf.nb.pm) shows the evening CDF.

This figure call has a curly-braced figure reference done properly.

![Cumulative density function of measured travel times, Northbound, 6 AM{#fig:ecdf.nb.am}](ks_hr_ecdf_n007.pdf)

So does this one.

![Cumulative density function of measured travel times, Northbound, 6 PM{#fig:ecdf.nb.pm}](ks_hr_ecdf_n019.pdf)



---------------------------------------------------
  Source    N   Mean   Std Dev   Median   Min   Max
-------- ---- ------ --------- -------- ----- -----
      bt  485  219.5     42.05    214.9 139.5 500.8

     sst 2880  221.6     29.03    217.4 155.3 484.7
---------------------------------------------------

Table: Summary statistics for all PM Peak (3-7pm) estimates on SB Beach{#tab:sb-pm-stats}

Notice the same idea with tables.  `"#tab:sb-pm-stats` is the way to
define the reference, and how to refer to it later.  For example,
[Table](#tab:sb-pm-stats) indicates a lot of similarity between the
afternoon estimates, but [Table](#tab:sb-am-stats) shows a marked
deviation in the morning period.


---------------------------------------------------
  Source    N   Mean   Std Dev   Median   Min   Max
-------- ---- ------ --------- -------- ----- -----
      bt  186  188.2     33.93    184.8 123.5   412

     sst 1447  199.4     18.33    199.3   149 319.2
---------------------------------------------------

Table: Summary statistics for AM Peak (7-9am) estimates on SB Beach{#tab:sb-am-stats}