Skip to content

fix: Enhance content_to_json for backward compatibility#374

Merged
yangbobo2021 merged 1 commit into
mainfrom
handle_devchat_api_old_version
May 8, 2024
Merged

fix: Enhance content_to_json for backward compatibility#374
yangbobo2021 merged 1 commit into
mainfrom
handle_devchat_api_old_version

Conversation

@yangbobo2021

Copy link
Copy Markdown
Contributor

This PR includes modifications to the content_to_json function that allow it to handle non-JSON content gracefully. A helper function _try_remove_markdown_block_flag has been introduced to preprocess content for compatibility with older versions of the devchat-api.

- Modified content_to_json function to handle non-JSON content
- Introduced _try_remove_markdown_block_flag to preprocess content
- Ensured backward compatibility with older devchat-api versions
@yangbobo2021 yangbobo2021 merged commit 5ccb007 into main May 8, 2024
@yangbobo2021 yangbobo2021 deleted the handle_devchat_api_old_version branch May 8, 2024 13:28
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