Bug#1042062: RFP: mdformat -- Markdown formatter that can be used to enforce a consistent style in Markdown files.

2023-12-20 Thread Antoine Beaupré
Control: tags -1 +pending +patch

Hi!

There's now a package for this! It was relatively easy to build, thanks
to py2dsp and the excellent pybuild toolchain (and the fact that
upstream doesn't have any dep missing from debian).

I pushed the code to salsa:

https://salsa.debian.org/python-team/packages/mdformat

... and it should land in NEW shortly as well.

One thing that's going to be missing here is the plethora of plugins in
the mdformat ecosystem. In my experiments, *most* markdown files I find
have at least need for *one* of those plugins, e.g. at least tables and
front matter, in my case.

I'm even going to need an extra plugin for GitLab's `[[_TOC_]]` thing,
although arguably that could be replaced by the mdformat-toc plugin as
well.

So I'm not sure how to package those: it seems silly to have one package
for each plugin, but maybe that's the simplest way forward, as I'm not
sure I want to deal with a multi-tarball thing...

Anyways, let me know if that works for you!

a.
-- 
Imagination is more important than knowledge.
Knowledge is limited.
Imagination encircles the world.
- Albert Einstein



Bug#1042062: RFP: mdformat -- Markdown formatter that can be used to enforce a consistent style in Markdown files.

2023-12-20 Thread Antoine Beaupré
Control: owner -1 anar...@debian.org
Control: retitle -1 ITP: mdformat -- Markdown formatter that can be used to 
enforce a consistent style in Markdown files.

I'm looking into this. The code is too large for a full audit, but i can
confirm third parties have packaged it and their checksums match, at
least FreeBSD does:

https://www.freshports.org/textproc/py-mdformat

SHA256 (executablebooks-mdformat-0.7.17_GH0.tar.gz) = 
833919e616c64cba88b8af09e485cd6b440366f572f963f2b18ea89b0d5c4416

This actually does *not* match the tarball on pypi, but it matches the
one on GitHub. And diffoscope only shows metadata differences between
the two. So I'll start with that.



signature.asc
Description: PGP signature


Bug#1042062: RFP: mdformat -- Markdown formatter that can be used to enforce a consistent style in Markdown files.

2023-07-25 Thread Junichi Uekawa
Package: wnpp
Severity: wishlist

* Package name: mdformat
  Version : 0.7.16
  Upstream Contact: Taneli Hukkinen
* URL : https://pypi.org/project/mdformat/
* License : MIT
  Programming Lang: python
  Description : Markdown formatter that can be used to enforce a consistent 
style in Markdown files.