markdawn
English description follows Japanese.
数式対応の Markdown → HTML コンバーター。教科書のように綺麗で読みやすいドキュメントを生成します。
発音: /ˈmɑːrkdɔːn/
markdawn という名前は md (markdown) と dawn (夜明け) を掛けたものです。元の Markdown よりも読みやすくて綺麗な資料が出来ることを夜明けに重ねています。
特徴
- 数式レンダリング: KaTeX による LaTeX 形式の数式を標準サポート
- 教科書のような見た目: 学習ノート・レポート・LLM の回答整形などに最適
- シンタックスハイライト: highlight.js による多彩なテーマでコードを綺麗に表示
- 単一 HTML ファイル出力: 共有・公開・印刷が簡単
- ヘッダー・サブタイトル・アクセントカラー・言語などをカスタマイズ可能
インストール
pip install markdawn
使い方
コマンドラインから
基本形:
markdawn input.md
これで input.html が同じ場所に生成されます。
利用可能なオプション:
| オプション | デフォルト | 説明 |
|---|---|---|
input |
(必須) | 入力 Markdown ファイル |
-o, --output |
同名の .html |
出力 HTML ファイルのパス |
--title |
H1 またはファイル名 | ヘッダーバーのタイトル |
--subtitle |
(空) | ヘッダーバーのサブタイトル |
--accent |
#2c5f8a |
アクセントカラー (16進数) |
--lang |
ja |
HTML の lang 属性 (例: ja, en) |
--hl-theme |
atom-one-light |
highlight.js のテーマ名 (例: github, github-dark, monokai, vs2015) |
実行例:
markdawn notes.md -o notes.html --title "第3講" --subtitle "線形代数" --accent "#8a2c5f" --hl-theme github-dark
Python から
import markdawn
markdawn.convert("input_filename.md")
使いどころ
- LLM の回答を綺麗で共有しやすい資料に整える
- 数式を含む講義ノートや技術文書の作成
- 素の Markdown では味気ないので、もっと整った見た目にしたいとき
markdawn
A Markdown-to-HTML converter with math support, designed to produce textbook-quality, beautifully readable documents.
Pronunciation: /ˈmɑːrkdɔːn/
The name markdawn is a play on md (markdown) + dawn — the goal is to produce documents that are cleaner and more readable than plain Markdown, like a new dawn for your notes.
Features
- Math rendering powered by KaTeX (LaTeX-style equations work out of the box)
- Textbook-style appearance — clean typography suitable for study notes, reports, or polished LLM outputs
- Syntax highlighting for code blocks via highlight.js (multiple themes available)
- Single-file HTML output — easy to share, host, or print
- Customizable header, subtitle, accent color, and language
Installation
pip install markdawn
Usage
From the command line
The basic form is:
markdawn input.md
This produces input.html next to the source file.
Available options:
| Option | Default | Description |
|---|---|---|
input |
(required) | Input Markdown file |
-o, --output |
same name with .html |
Output HTML file path |
--title |
H1 or filename | Title shown in the header bar |
--subtitle |
(empty) | Subtitle shown in the header bar |
--accent |
#2c5f8a |
Accent color (hex code) |
--lang |
ja |
lang attribute of the HTML (e.g. ja, en) |
--hl-theme |
atom-one-light |
highlight.js theme name (e.g. github, github-dark, monokai, vs2015) |
Example:
markdawn notes.md -o notes.html --title "Lecture 3" --subtitle "Linear Algebra" --accent "#8a2c5f" --lang en --hl-theme github-dark
From Python
import markdawn
markdawn.convert("input_filename.md")
When to use markdawn
- Turning LLM responses into clean, shareable documents
- Class notes or technical writeups containing equations
- Any case where plain Markdown looks too raw and you want a more polished result
Metadata
Release files for markdawn 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| markdawn-0.3.0.tar.gz | 9.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| markdawn-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / markdawn-0.3.0.tar.gz
| Download URL | markdawn-0.3.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee36de812645b67fc0ce614c8ca3da7c86378c1aa2f6422d3147e29504d7a60a
|
|
BLAKE2b-256 checksum How to use checksums |
0a8e99bd17991d9bf4f2eacaa29f5c50386e7d8e52f3aa906f7bc9ea7123a473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Release files / markdawn-0.3.0-py3-none-any.whl
| Download URL | markdawn-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08914884e6b57ae6f936c1dd2abb4c468022435c42f0a45583ffd25390877f83
|
|
BLAKE2b-256 checksum How to use checksums |
c9496eeb5442496790ea1a54622565c73c57a05ef1acafd4bfd79cb80babf3f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Security for markdawn 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.