Enhance Document Conversion API with Table and Code Block Support #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This Pull Request introduces significant enhancements to the
@universityofnicosia/unic-document-conversion-library
, specifically by adding support for tables and code blocks in document conversions. This feature is part of our continuous effort to expand the library's capabilities and provide more versatile document conversion solutions.Key Changes
New Features
Code Improvements
applyElementsAndStyles
function inofficegenHelper.js
to handle undefinedstyles
orstyles.fontFamily
, enhancing the robustness of document generation.documentService.test.js
to cover the new table and code block features, ensuring reliability and stability.Documentation and Examples
api-usage.md
with advanced examples showcasing how to utilize tables and code blocks, providing users with practical guides to leverage these new features..gitignore
file to include*.docx
, preventing generated document files from being inadvertently committed to the repository.Impact
These enhancements significantly broaden the use cases for the document conversion API, catering to more complex document generation needs such as technical documentation and data reports. By integrating these features, we continue to offer a comprehensive and flexible solution for document conversion requirements.
This update reflects our commitment to providing high-quality, versatile document conversion tools to meet the evolving needs of our users.