Skip to content

feat: add configurable line numbers for Confluence code blocks#77

Merged
geopanther merged 4 commits into
mainfrom
feat/configurable-code-linenumbers
Jun 13, 2026
Merged

feat: add configurable line numbers for Confluence code blocks#77
geopanther merged 4 commits into
mainfrom
feat/configurable-code-linenumbers

Conversation

@geopanther

@geopanther geopanther commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a --enable-line-numbers CLI flag to optionally enable line numbers in Confluence code blocks. Default is disabled (off) for cleaner output.

Changes

  • New --enable-line-numbers CLI argument
  • Threaded enable_line_numbers option through document.py and ConfluenceRenderer
  • Renderer sets linenumbers parameter to true/false based on the flag
  • Added unit + functional tests for both paths
  • Updated CHANGELOG

Testing

  • All pre-commit and pre-push hooks passed
  • Unit + functional tests cover enabled/disabled paths

Supersedes #76 (renamed branch chore/disable-code-linenumbers -> feat/configurable-code-linenumbers).

Add a CLI switch to optionally render line numbers in Confluence code
blocks. Default is off. Threads enable_line_numbers through
document parsing and ConfluenceRenderer.
@geopanther
geopanther merged commit 337ced1 into main Jun 13, 2026
5 checks passed
@geopanther
geopanther deleted the feat/configurable-code-linenumbers branch June 13, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant