feat: add DOCX/HTML output, go-tomd reverse converter, and input/output flags

- go-mdtopdf-helper: -format pdf,html,docx; new internal/document writers
  (standalone HTML, pure Go DOCX)
- new go-tomd command converting PDF/HTML/DOCX back to Markdown, skipping
  existing .md files unless -force
- -input/-output on both commands (single file with chosen name, or output
  directory mirroring the scan layout)
- restructure README and build config (Makefile, goreleaser) for both binaries
This commit is contained in:
Hein committed 2026-10-08 17:05:01 +02:00
1 parent 50b7246c21
commit 5bf9c3673d
17 files changed
+1903 -84

No files matched your search

+7 -1
View File
@@ -1,17 +1,23 @@
BINARY := go-mdtopdf-helper
TOMD_BINARY := go-tomd
BIN_DIR := bin
CMD := ./cmd/go-mdtopdf-helper
TOMD_CMD := ./cmd/go-tomd
.PHONY: all build run test lint format clean
.PHONY: all build run run-tomd test lint format clean
all: format lint test build
build:
go build -o $(BIN_DIR)/$(BINARY) $(CMD)
go build -o $(BIN_DIR)/$(TOMD_BINARY) $(TOMD_CMD)
run:
go run $(CMD) $(ARGS)
run-tomd:
go run $(TOMD_CMD) $(ARGS)
test:
go test ./...