You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(backend): add generic options support and HTML image handling modes (#2011)
* feat: add backend options support to document backends
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Leg0shii <[email protected]>
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* feat: enhance document backends with generic backend options and improve HTML image handling
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Leg0shii <[email protected]>
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* Refactor tests for declarativebackend
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Leg0shii <[email protected]>
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* fix(HTML): improve image caption handling and ensure backend options are set correctly
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Leg0shii <[email protected]>
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* fix: enhance HTML backend image handling and add support for local file paths
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Leg0shii <[email protected]>
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* chore: Add ground truth data for test data
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Leg0shii <[email protected]>
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* fix(HTML): skip loading SVG files in image data handling
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Leg0shii <[email protected]>
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* refactor(html): simplify backend options and address gaps
Backend options for DeclarativeDocumentBackend classes and only when necessary.
Refactor caption parsing in 'img' elements and remove dummy text.
Replace deprecated annotations from Typing library with native types.
Replace typing annotations according to pydantic guidelines.
Some documentation with pydantic annotations.
Fix diff issue with test files.
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* tests(html): add tests and fix bugs
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* refactor(html): refactor backend options
Move backend option classes to its own module within datamodel package.
Rename 'source_location' with 'source_uri' in HTMLBackendOptions.
Rename 'image_fetch' with 'fetch_images' in HTMLBackendOptions.
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
* refactor(markdown): create a class for the markdown backend options
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
---------
Signed-off-by: Leg0shii <[email protected]>
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
0 commit comments