summaryrefslogtreecommitdiff
path: root/DomainDig/UsageCreditService.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-07-17 11:09:02 -0500
committerChristian Cleberg <[email protected]>2026-07-20 13:56:41 -0500
commit01c3d342f6980a69feb8df27a3454fd721d6298e (patch)
tree72f7758dfb38623b1f4a3b6d5cf9c9d98e9bc601 /DomainDig/UsageCreditService.swift
parent54c151e22f8a5d4d7a9c290e79fc7626415f7083 (diff)
downloaddomain-dig-01c3d342f6980a69feb8df27a3454fd721d6298e.tar.gz
domain-dig-01c3d342f6980a69feb8df27a3454fd721d6298e.tar.bz2
domain-dig-01c3d342f6980a69feb8df27a3454fd721d6298e.zip
v4.8.0: Add markdown and PDF export formats
- DomainExportFormat gains .markdown and .pdf (CaseIterable, Identifiable, titled), alongside the existing text/csv/json. - Markdown reuses the existing text-export content verbatim via a line-based transform (section "Title\n----" underlines become "## Title", the leading title becomes an H1, other lines become bullets), so the two formats can never drift apart. - PDF renders that Markdown as a simple monospaced multi-page document via UIGraphicsPDFRenderer (mirrors AuditExporter's existing PDF approach; degrades to raw Markdown bytes on non-UIKit platforms). - Replaced the single/batch/tracked-domains/workflow share call sites' hand- written per-format switches with format-agnostic functions (exportSingleReportData, exportBatchReportData, exportTrackedDomainsData, exportWorkflowData) that delegate straight to DomainReportExporter, removing the now-orphaned per-format helper functions those switches used to call.
Diffstat (limited to 'DomainDig/UsageCreditService.swift')
0 files changed, 0 insertions, 0 deletions