Skip to content

docs: fix PP-StructureV3 Markdown export example - #18377

Open
Manfredss wants to merge 1 commit into
PaddlePaddle:mainfrom
Manfredss:fix_18369
Open

Manfredss wants to merge 1 commit into
PaddlePaddle:mainfrom
Manfredss:fix_18369

Conversation

@Manfredss

Copy link
Copy Markdown

Fixes #18369.

concatenate_markdown_pages() returns a MarkdownResult, so passing it directly to f.write() raises a TypeError. Extract markdown_texts before writing, and update the Chinese and English docs.

Tested with a two-page PDF and image export. All 19 PP-StructureV3 tests and pre-commit checks passed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in "concatenate_markdown_pages" example in Usage tutorial for PPStructureV3: TypeError: write() argument must be str, not MarkdownResult

1 participant