feat: highlight the current book's column in the TOC (Closes #6)
Add TocConfig with highlightColumn field to BookConfig. TocRenderer now applies a light gray background shading to the designated column header and data cells, making it easy to visually distinguish the current book's page numbers from reference book columns. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit was merged in pull request #10.
This commit is contained in:
@@ -8,7 +8,12 @@ data class BookConfig(
|
||||
val images: ImagesConfig = ImagesConfig(),
|
||||
val referenceBooks: List<ReferenceBook> = emptyList(),
|
||||
val output: OutputConfig = OutputConfig(),
|
||||
val foreword: ForewordConfig? = null
|
||||
val foreword: ForewordConfig? = null,
|
||||
val toc: TocConfig = TocConfig()
|
||||
)
|
||||
|
||||
data class TocConfig(
|
||||
val highlightColumn: String? = null // abbreviation of the column to highlight (e.g. "CL")
|
||||
)
|
||||
|
||||
data class ForewordConfig(
|
||||
|
||||
Reference in New Issue
Block a user