Be able to disable hyphenation with docx but allow for others #3

Closed
opened 2025-07-17 01:13:23 +00:00 by dmoonfire · 1 comment
Owner
No description provided.
Author
Owner

Added an exclude to pipelines in the same pattern as the content elements:

contents:
  - element: chapter
    source: pipeline.md
    pipeline:
      - module: "@mfgames-writing/hyphen-pipeline"
        exclude:
          editions: [docx]

This caused a difficulty with an undocumented element in hyphen-pipeline which allowed for a regular expression to ignore certain words that caused problem with hyphenation. This was moved to exclude.regex.

contents:
  - element: chapter
    source: pipeline.md
    pipeline:
      - module: "@mfgames-writing/hyphen-pipeline"
        exclude:
          editions: [docx]
          regex: ["^bob$"]

Because this changed some projects in use, it was treated as a breaking change and bumped the version.

Added an `exclude` to pipelines in the same pattern as the content elements: ``` contents: - element: chapter source: pipeline.md pipeline: - module: "@mfgames-writing/hyphen-pipeline" exclude: editions: [docx] ``` This caused a difficulty with an undocumented element in `hyphen-pipeline` which allowed for a regular expression to ignore certain words that caused problem with hyphenation. This was moved to `exclude.regex`. ``` contents: - element: chapter source: pipeline.md pipeline: - module: "@mfgames-writing/hyphen-pipeline" exclude: editions: [docx] regex: ["^bob$"] ``` Because this changed some projects in use, it was treated as a breaking change and bumped the version.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mfgames-writing-js/mfgames-writing-js#3
No description provided.