
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
pandoc-index
Advanced tools
Create an index for markdown/pandoc books.
I wrote a technical book in markdown and needed a possibility to create an index of important terms. I did not find something usable for me (did not want to install the whole LaTeX suite just to create an index). So I wrote this rather quick and dirty tool. There are probably better ways. YMMV.
npm install -g pandoc-index
Mark up all interesting terms with the index class, such as: This is an interesting [term]{.index} to add to the index.
Create a JSON representation of Pandoc's AST tree: pandoc -o myindex.json part1.md part2.md part3.md
. This will output a file myindex.json.
Create the index: pandoc-index myindex
. This will read myindex.json and output myindex.md
Create the book: pandoc -o mybook.epub -t epub3 part1.md part2.md part3.md myindex.md
.
Some of the code is adapted from pandoc-filter. pandoc-index is, however, not a pandoc filter since we don't change the original text at all.
Thanks to John MacFarlane for pandoc and to Mike Henderson für pandoc-filter.
Apache 2.0
FAQs
Create a book index with pandoc
We found that pandoc-index demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.