This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Kotlin command-line tool that converts Markdown files to PDF. Uses CommonMark for Markdown parsing (with GFM table support) and iText for HTML-to-PDF conversion.
# Build (Windows - this is a Windows project)
gradlew.bat build
# Run the converter (reads file.md, outputs file.pdf)
gradlew.bat runNo test suite exists. The project is validated manually using test markdown files (file.md, file-ReplicaIsland.md, file-simpletable.md, file-markdown-megatest.md).
Single-file application: src/main/kotlin/Main.kt (package com.jimandreas)
Processing pipeline:
- Read input
.mdfile - Parse with CommonMark + GFM tables extension
- Render to HTML
- Wrap HTML with CSS styling (Arial font, table borders)
- Convert HTML to PDF via iText
HtmlConverter
org.commonmark:commonmark:0.27.0— Markdown parserorg.commonmark:commonmark-ext-gfm-tables:0.27.0— GFM table extensioncom.itextpdf:html2pdf:6.3.0— HTML to PDF conversion- Build: Gradle 8.14 with Kotlin DSL, Kotlin 2.0.0