Skip to main content

A tool that converts markdown containing mathematical formulas into HTML as beautiful as dawn

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markdawn-0.3.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markdawn-0.3.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file markdawn-0.3.0.tar.gz.

File metadata

  • Download URL: markdawn-0.3.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for markdawn-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ee36de812645b67fc0ce614c8ca3da7c86378c1aa2f6422d3147e29504d7a60a
MD5 9aa5a7bc6fe7cb858fbfb2a49bac272d
BLAKE2b-256 0a8e99bd17991d9bf4f2eacaa29f5c50386e7d8e52f3aa906f7bc9ea7123a473

See more details on using hashes here.

File details

Details for the file markdawn-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: markdawn-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for markdawn-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08914884e6b57ae6f936c1dd2abb4c468022435c42f0a45583ffd25390877f83
MD5 bb283762e9484a62dc7a28e8d29df1f6
BLAKE2b-256 c9496eeb5442496790ea1a54622565c73c57a05ef1acafd4bfd79cb80babf3f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page