-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: Add support for Confluence Macros #5001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Added functionality to clean up Confluence macro stylings in backend/onyx/connectors/confluence/onyx_confluence.py
, improving document parsing cleanliness.
- Added new
_remove_macro_stylings
function to strip unnecessary style parameters from Confluence HTML content - Removed legacy commented-out code (
_wrap_methods
and_ensure_token_valid
) for better code cleanliness - Specifically targets
ac:parameter
elements withac:name="page"
attributes for removal
1 file reviewed, 1 comment
Edit PR Review Bot Settings | Greptile
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
* Remove macro stylings from HTML tree * Add params * Handle multiple cases of `ac:structured-macro` being found. Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Description
This PR enables support for parsing Confluence Macros and removing the unnecessary styling.
Addresses: https://linear.app/danswer/issue/DAN-2164/add-support-for-confluence-karma-parsing.
How Has This Been Tested?
Manually tested.