Skip to content

Commit

Permalink
Removed pandoc-defref proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
KDean-Dolphin committed Jan 23, 2025
1 parent 3c62fc1 commit 922d081
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions bin/pandoc-defref-proxy

This file was deleted.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
"lint": "eslint .",
"build-dist": "tsup src/index.ts --format cjs,esm --dts"
},
"bin": {
"pandoc-defref-proxy": "bin/pandoc-defref-proxy"
},
"devDependencies": {
"@eslint/js": "^9.18.0",
"@stylistic/eslint-plugin": "^2.13.0",
Expand Down
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { exec as pandocDefrefExec } from "@legreq/pandoc-defref";
import { spawnSync } from "child_process";
import fs from "fs";

// Exporting the pandoc-defref exec() function is necessary for the proxy binary, as the pandoc-defref package may not be installed directly by the client.
export { pandocDefrefExec };

/**
* Get the full path from a relative path.
*
Expand Down Expand Up @@ -167,7 +163,7 @@ export function exec(parameterOptions: unknown): never {
arg("--lua-filter", fullPath("../pandoc/include-files.lua")),
arg("--lua-filter", fullPath("../pandoc/include-code-files.lua")),
arg("--filter", "mermaid-filter"),
arg("--filter", "pandoc-defref-proxy"),
arg("--filter", "pandoc-defref"),
...(options.filters ?? []).map(filter => arg(filter.type !== "json" ? "--lua-filter" : "--filter", filter.name)),
arg("--template", options.templateFile, fullPath("../pandoc/template.html")),
arg("--include-before-body", options.headerFile),
Expand Down

0 comments on commit 922d081

Please sign in to comment.