diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 65a58900ff..70e3352d06 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -40,6 +40,7 @@ ;;; Copyright © 2023 Daniel Ziltener ;;; Copyright © 2023, 2024 Troy Figiel ;;; Copyright © 2024 Herman Rimm +;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz> ;;; ;;; This file is part of GNU Guix. ;;; @@ -49821,6 +49822,36 @@ compliant email address validation.") (description "Simple instrumentation profiler for games.") (license (list license:expat license:asl2.0)))) +(define-public rust-pulldown-cmark-to-cmark-10 + (package + (name "rust-pulldown-cmark-to-cmark") + (version "10.0.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "pulldown-cmark-to-cmark" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0gc366cmd5jxal9m95l17rvqsm4dn62lywc8v5gwq8vcjvhyd501")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-pulldown-cmark" ,rust-pulldown-cmark-0.9)) + #:cargo-development-inputs + (("rust-indoc" ,rust-indoc-1) + ("rust-pretty-assertions" ,rust-pretty-assertions-0.7)))) + (home-page "https://github.com/Byron/pulldown-cmark-to-cmark") + (synopsis + "Convert pulldown-cmark Events back to the string they were parsed from") + (description + "A utility library which translates Event back to markdown. It's the +prerequisite for writing markdown filters which can work as +@code{mdbook-preprocessors}. + +This library takes great pride in supporting everything that +@code{pulldown-cmark} supports, including tables and footnotes and codeblocks +in codeblocks, while assuring quality with a powerful test suite.") + (license license:asl2.0))) + (define-public rust-pulldown-cmark-0.9 (package (name "rust-pulldown-cmark")