From 560ab4f71568d7416a36b23e0b7c00caf718b508 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 29 Aug 2022 16:30:08 +0200 Subject: [PATCH] pandoc-katex: init at 0.1.9 --- pkgs/tools/misc/pandoc-katex/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/tools/misc/pandoc-katex/default.nix diff --git a/pkgs/tools/misc/pandoc-katex/default.nix b/pkgs/tools/misc/pandoc-katex/default.nix new file mode 100644 index 00000000000..e2bef6aebf3 --- /dev/null +++ b/pkgs/tools/misc/pandoc-katex/default.nix @@ -0,0 +1,22 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "pandoc-katex"; + version = "0.1.9"; + + src = fetchFromGitHub { + owner = "xu-cheng"; + repo = pname; + rev = version; + hash = "sha256-Sd+f1a3Y4XwSj5BupAH35UK6gQxzLy5jJCtc77R9wnM="; + }; + + cargoSha256 = "sha256-PVEQTzkkD6V9DqcIHznfnO1wOARSxutLApaO9dlokTQ="; + + meta = with lib; { + description = "Pandoc filter to render math equations using KaTeX"; + homepage = "https://github.com/xu-cheng/pandoc-katex"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ minijackson pacien ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 207c7206c0a..d3bf9c97f4c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9174,6 +9174,8 @@ with pkgs; pandoc-drawio-filter = python3Packages.callPackage ../tools/misc/pandoc-drawio-filter { }; + pandoc-katex = callPackage ../tools/misc/pandoc-katex { }; + pandoc-plantuml-filter = python3Packages.callPackage ../tools/misc/pandoc-plantuml-filter { }; # pandoc-*nos is a filter suite, where pandoc-xnos has all functionality and the others are used for only specific functionality