Automic VaultAutomic Vault

brew

Install discount with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

C implementation of Markdown. Version 3.0.1.3 via Homebrew; verified 2026-06-14.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install discount

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install discount

MacPorts ports tree · textproc/discount/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add discount

Alpine Linux edge package indexes · discount · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install discount

Debian stable package indexes · discount · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install discount

Fedora Rawhide package metadata · discount · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#discount

nixpkgs package indexes · pkgs/by-name/di/discount/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S discount

Arch Linux sync databases · discount · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install discount

openSUSE Tumbleweed package metadata · discount · source: download.opensuse.org

overview

Package summary

C implementation of Markdown

Commands and aliases

  • makepage
  • mkd2html
  • theme

history

Project history and usage

Discount is Jessica L. Parsons' C implementation of John Gruber's Markdown markup language.

Project history

The official site describes Discount as a C implementation of Markdown, positioned against the many scripting-language Markdown implementations of its era. It provides a library, command-line programs, examples, and extensions such as smartypants-style substitutions and extra list syntax.

Adoption history

Discount became useful to package collections because it offered Markdown as a small C library and CLI rather than only as a script. The official site continues to ship release tarballs, including the 3.0 series and maintained 2.2 series.

How it is used

The command-line documentation describes a markdown program that reads Markdown and writes HTML or a parse-tree outline. The API documentation makes it useful for embedding Markdown conversion in C programs, while the command-line tools fit scripting and static-site workflows.

Why package nerds care

Package nerds care about Discount because it is a native-code Markdown implementation with a stable tarball culture, command-line tooling, and library API: exactly the sort of small C dependency that shows up in Unix packaging graphs.

Timeline

  • 2010: GitHub repository created.
  • 2025: Command-line documentation generated for the 3.0 series.
  • 2026: Discount 3.0.1.3 released.

Related projects

  • The official site roots Discount in John Gruber's Markdown and notes behavior related to Smartypants and Markdown Extra-style syntax.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
makepagecliglobal executable
mkd2htmlcliglobal executable
themecliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version3.0.1.3
manager updated2026-06-14
local dataok
upstreamnot checked
latest detectednot detected

https://www.pell.portland.or.us/~orc/Code/discount/

install metadata

Package metadata

Package keybrew:discount
Version3.0.1.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/discount
Homepagehttps://www.pell.portland.or.us/~orc/Code/discount/
Repositoryhttps://github.com/Orc/discount
Upstream docshttps://www.pell.portland.or.us/~orc/Code/discount
LicenseBSD-3-Clause
Source archivehttps://www.pell.portland.or.us/~orc/Code/discount/discount-3.0.1.3.tar.bz2
Last updated2026-06-14T15:34:39Z
Pulseupdated
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namediscount
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • markdown
  • multimarkdown
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

discount 2.2.7-2.1

implementation of the Markdown markup language in C

http://www.pell.portland.or.us/~orc/Code/discount/

sudo apt install discount
  • Section: text
  • Architecture: amd64
  • 2 dependencies
  • normalized package name match
  • Matched by: Discount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: discount from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmarkdown2 2.2.7-2.1

implementation of the Markdown markup language in C (library)

http://www.pell.portland.or.us/~orc/Code/discount/

sudo apt install libmarkdown2
  • Section: libs
  • Architecture: amd64
  • Source Package: discount
  • 1 dependencies
  • normalized package name match
  • Matched by: Discount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmarkdown2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmarkdown2-dev 2.2.7-2.1

implementation of the Markdown markup language in C (dev files)

http://www.pell.portland.or.us/~orc/Code/discount/

sudo apt install libmarkdown2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: discount
  • 1 dependencies
  • normalized package name match
  • Matched by: Discount
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmarkdown2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

discount

nix profile install nixpkgs#discount
  • normalized package name match
  • Matched by: Discount
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/di/discount/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

discount 2.2.7-2build1

implementation of the Markdown markup language in C

http://www.pell.portland.or.us/~orc/Code/discount/

sudo apt install discount
  • Section: universe/text
  • Architecture: amd64
  • 2 dependencies
  • normalized package name match
  • Matched by: Discount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: discount from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libmarkdown2 2.2.7-2build1

implementation of the Markdown markup language in C (library)

http://www.pell.portland.or.us/~orc/Code/discount/

sudo apt install libmarkdown2
  • Section: libs
  • Architecture: amd64
  • Source Package: discount
  • 1 dependencies
  • normalized package name match
  • Matched by: Discount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmarkdown2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libmarkdown2-dev 2.2.7-2build1

implementation of the Markdown markup language in C (dev files)

http://www.pell.portland.or.us/~orc/Code/discount/

sudo apt install libmarkdown2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: discount
  • 1 dependencies
  • normalized package name match
  • Matched by: Discount
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmarkdown2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

discount 3.0.1.2-r1

Markdown to HTML translator written in C

https://www.pell.portland.or.us/~orc/Code/discount/

sudo apk add discount
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: discount
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Discount
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: discount from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

discount-dev 3.0.1.2-r1

Markdown to HTML translator written in C (development files)

https://www.pell.portland.or.us/~orc/Code/discount/

sudo apk add discount-dev
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: discount
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Discount
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: discount-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

discount-doc 3.0.1.2-r1

Markdown to HTML translator written in C (documentation)

https://www.pell.portland.or.us/~orc/Code/discount/

sudo apk add discount-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: discount
  • normalized package name match
  • Matched by: Discount
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: discount-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

discount-libs 3.0.1.2-r1

Markdown to HTML translator written in C (libraries)

https://www.pell.portland.or.us/~orc/Code/discount/

sudo apk add discount-libs
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: discount
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Discount
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: discount-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

discount 2.2.7-14.fc44

A command-line utility for converting Markdown files into HTML

http://www.pell.portland.or.us/~orc/Code/discount

sudo dnf install discount
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: discount
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Discount
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: discount from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libmarkdown 2.2.7-14.fc44

A fast implementation of the Markdown language in C

http://www.pell.portland.or.us/~orc/Code/discount

sudo dnf install libmarkdown
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: discount
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Discount
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libmarkdown from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libmarkdown-devel 2.2.7-14.fc44

Development headers for the libmarkdown library

http://www.pell.portland.or.us/~orc/Code/discount

sudo dnf install libmarkdown-devel
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: discount
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Discount
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libmarkdown-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

discount 3.0.1.3-1

A Markdown implementation written in C

https://www.pell.portland.or.us/~orc/Code/discount/

sudo pacman -S discount
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Discount
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: discount from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

discount 3.0.1.2-2.2

Markdown text to HTML converter

https://www.pell.portland.or.us/~orc/Code/discount/

sudo zypper install discount
  • License: BSD-3-Clause
  • Category: Productivity/Text/Convertors
  • Architecture: x86_64
  • Source Package: discount
  • 4 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Discount
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: discount from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment