Skip to main content

mrkd

Write man pages using Markdown, and convert them to Roff or HTML.

Installation

$ pip install mrkd

Usage

$ mrkd my-file.1.md my-file.1

Syntax is mrkd [options...] input-file output-file. The name and section number will automatically be derived from the input file, though you can override them using -name my-name and -section my-section, respectively.

Change the format to HTML using -format html:

$ mrkd my-file.1.md -format html my-file.1.html

You can override the HTML template (see template.html for an example) using -template.

In order to setup HTML links, you can set up an index file like so:

[Index]
my-page(1)=my-page.1.html

Then, when you do the following in your Markdown files:

something something (see my-page(1))

mrkd will automatically pick up the link and connect it via the index file. Pass it via the -index argument:

$ mrkd -f html -index index.ini my-file.1.md my-file.1.html

See the test directory for an example.

Release files for mrkd 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mrkd 0.2.0
File Size Uploaded
mrkd-0.2.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mrkd 0.2.0
File Interpreter ABI Platform
mrkd-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / mrkd-0.2.0.tar.gz

Download URL mrkd-0.2.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
456f8c1be99da268554b29c6b5383532e58119def5a65d85270bc6a0ecc26aaf
BLAKE2b-256 checksum
How to use checksums
3a5b8cacb9e6f5589c5465fb65f79af76122bc6d8970cd3a15c498ca6bc45a93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.4

Release files / mrkd-0.2.0-py3-none-any.whl

Download URL mrkd-0.2.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cb47bb9eb8933a34ea2f2110529f33a07abcf1da43b7e77328538b7ee6164a0
BLAKE2b-256 checksum
How to use checksums
bc9c981764250c3b693f0cf936e96d405b107b15ac57fcdc3476b39b5c298e4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.4

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.6

1 release file

0.1.5

2 release files

0.1.4

1 release file

0.1.3

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page