Skip to content
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

Enhance Document Conversion API with Table and Code Block Support #5

Merged
merged 8 commits into from
Apr 10, 2024

Conversation

HlexNC
Copy link

@HlexNC HlexNC commented Apr 10, 2024

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 Block Support: Implemented functionality to add code blocks to documents, enabling clearer presentation of code snippets within the generated documents.
  • Table Support: Added the capability to include tables in documents, allowing for structured data presentation with customizable styles.

Code Improvements

  • Safety Checks: Improved the applyElementsAndStyles function in officegenHelper.js to handle undefined styles or styles.fontFamily, enhancing the robustness of document generation.
  • Unit Tests: Updated and expanded unit tests in documentService.test.js to cover the new table and code block features, ensuring reliability and stability.

Documentation and Examples

  • API Usage Documentation: Extended the 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 Updates: Updated the .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.

@HlexNC HlexNC self-assigned this Apr 10, 2024
@HlexNC HlexNC merged commit 6bd4e6a into main Apr 10, 2024
3 checks passed
@HlexNC HlexNC deleted the feature/document-formatting-enhancements branch April 10, 2024 15:58
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