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.
This pull request introduces support for generating Right-to-Left (RTL) documents and includes several updates to the codebase to accommodate this feature. The changes span multiple files, adding an
isRTL
property to theDocxDocument
class and propagating this flag through various document rendering functions. Additionally, thepackage.json
file has been updated to reflect the new project name and remove unused dependencies.RTL Support Enhancements:
src/docx-document.js
: Added anisRTL
property to theDocxDocument
class and passed it to thegenerateDocumentTemplate
function. [1] [2]src/helpers/render-document-file.js
: Updated multiple functions to pass theisRTL
flag to XML builders for paragraphs, tables, images, and other document elements. [1] [2] [3] [4] [5] [6] [7] [8]src/schemas/document.template.js
: Modified thegenerateDocumentTemplate
function to accept anisRTL
parameter and include<w:bidi/>
in the document XML when RTL is enabled. [1] [2]Project Metadata Updates:
package.json
: Changed the project name tohtml-to-docx-rtl
, removed thehusky
dependency, and updated thescripts
section to exclude theprepare
script. [1] [2] [3]