Skip to content

Conversation

@javierbrea
Copy link
Collaborator

@javierbrea javierbrea commented Nov 24, 2025

Release 2.3.0

confluence-sync v2.2.0

Added

  • feat: Add apiPrefix option to configure the Confluence API prefix (default: /rest/).

markdown-confluence-sync v2.3.0

Added

closes #65

Agreement

Please check the following boxes after you have read and understood each item.

  • I have read the CONTRIBUTING document
  • I have read the CODE_OF_CONDUCT document
  • I accept that, by signing the Contributor License Agreement through a comment in the PR, my Github user name will be stored by in a branch of this repository for future reference.

In case this is your first contribution to this project, you will also have to add a comment with the following text: "I have read the CLA Document and I hereby sign the CLA", otherwise the PR status will fail and our bot will request you to add it. Once you have signed it in a PR, you will not have to sign it again for future contributions.

javierbrea and others added 2 commits November 24, 2025 10:44
* feat: Add code blocks transformation to Confluence code macro

---------

Co-authored-by: frankledo <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Copilot <[email protected]>
@javierbrea javierbrea self-assigned this Nov 24, 2025
Copilot AI review requested due to automatic review settings November 24, 2025 09:56
@github-actions
Copy link

Check SPDX headers

✅ 247 files have valid headers.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This release adds code block transformation support for converting markdown code blocks to Confluence's code macro format with syntax highlighting, and updates the package version to 2.3.0.

Key changes:

  • New optional rehype.codeBlocks configuration option (disabled by default) to enable code block transformation
  • Implementation of rehypeReplaceCodeBlocks plugin to convert code blocks to Confluence code macro format
  • Comprehensive test coverage for the new code block transformation feature

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
components/markdown-confluence-sync/package.json Version bump to 2.3.0
components/markdown-confluence-sync/CHANGELOG.md Documentation of new code blocks feature and release date
components/markdown-confluence-sync/README.md Documentation of new rehype.codeBlocks configuration option and code block transformation feature
components/markdown-confluence-sync/markdown-confluence-sync.config.cjs Example configuration enabling code blocks transformation
components/markdown-confluence-sync/jest.unit.config.cjs Coverage threshold adjusted from 98% to 97%
components/markdown-confluence-sync/src/lib/MarkdownConfluenceSync.ts Integration of rehype configuration namespace
components/markdown-confluence-sync/src/lib/confluence/ConfluenceSync.types.ts Type definitions for new rehype.codeBlocks option
components/markdown-confluence-sync/src/lib/confluence/ConfluenceSync.ts Implementation of rehype code blocks option handling
components/markdown-confluence-sync/src/lib/confluence/transformer/ConfluencePageTransformer.types.ts Type definitions for transformer rehype options
components/markdown-confluence-sync/src/lib/confluence/transformer/ConfluencePageTransformer.ts Conditional registration of rehypeReplaceCodeBlocks plugin
components/markdown-confluence-sync/src/lib/confluence/transformer/support/rehype/rehype-replace-code-blocks.ts Core implementation of code block to Confluence macro transformation
components/markdown-confluence-sync/test/unit/specs/confluence/ConfluenceSync.test.ts Test setup for rehype configuration namespace
components/markdown-confluence-sync/test/unit/specs/confluence/transformer/ConfluencePageTransformer.test.ts Updated test instantiations to include rehype.codeBlocks option
components/markdown-confluence-sync/test/unit/specs/confluence/transformer/support/rehype/rehype-replace-code-blocks.test.ts Comprehensive test suite for code block transformation functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

Check License Compliance

✅ There are 1450 dependencies with allowed licenses.

⚠️ There are 5 dependencies with dangerous licenses:

✅ Result: Valid licenses

@javierbrea javierbrea merged commit c64079e into main Nov 24, 2025
21 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Code Blocks Rendering as Inline Code in Confluence

2 participants