refactor: remove redundant parameters in pm-adapter (SD-1587)#1823
Merged
harbournick merged 7 commits intomainfrom Jan 24, 2026
Merged
Conversation
added 5 commits
January 23, 2026 15:46
I ran a bunch of tests in Word and the behavior we were implementing was wrong. The properties from the Normal style are always after the document's defaults, regardless of the value of w:default for the Normal style. Also, the properties from the Normal style are only added to the chain if the element does not have a linked style assigned.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aaed6b64de
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
harbournick
pushed a commit
that referenced
this pull request
Jan 24, 2026
* refactor: remove unused styleContext parameter * fix: extract default font and size from docDefaults * fix: adjust default font and size to match word * fix: ordering of document defaults and normal style I ran a bunch of tests in Word and the behavior we were implementing was wrong. The properties from the Normal style are always after the document's defaults, regardless of the value of w:default for the Normal style. Also, the properties from the Normal style are only added to the chain if the element does not have a linked style assigned. * test: fix existing tests * chore: remove unused imports * fix: interpret default font size as pixels instead of points --------- Co-authored-by: Luccas Correa <luccas@superdoc.dev>
harbournick
pushed a commit
that referenced
this pull request
Jan 24, 2026
# [1.9.0-next.2](v1.9.0-next.1...v1.9.0-next.2) (2026-01-24) ### Bug Fixes * remove redundant parameters in pm-adapter (SD-1587) ([#1823](#1823)) ([e315ad4](e315ad4))
harbournick
pushed a commit
that referenced
this pull request
Jan 29, 2026
# [1.9.0](v1.8.3...v1.9.0) (2026-01-29) ### Bug Fixes * add typesVersions for TypeScript subpath exports ([#1851](#1851)) ([923ab29](923ab29)) * annotation and interaction issues ([#1847](#1847)) ([ffb1055](ffb1055)) * annotation formatting ([0ac67b2](0ac67b2)) * apply correct style to inserted links ([#1871](#1871)) ([36e3c4b](36e3c4b)) * block ID collisions and missing positions in paragraph converter ([3e75a98](3e75a98)) * correct cursor position when typing after fully track-deleted content ([#1828](#1828)) ([8de1c5f](8de1c5f)) * **export:** prefix Relationship IDs with rId for valid xsd:ID ([#1855](#1855)) ([11e67e1](11e67e1)) * incorrect list counter calculation (SD-1658) ([#1867](#1867)) ([a960a65](a960a65)) * list numbering sync for cloned defs and zero start overrides ([c21301b](c21301b)) * make test:slow script find the slow test file ([5a6b6d6](5a6b6d6)) * patch broken numbering definitions ([#1848](#1848)) ([f34b121](f34b121)) * preserve style on row insertion ([#1553](#1553)) ([92f67dc](92f67dc)) * preserve text selection on right-click in Firefox ([#1826](#1826)) ([0a23338](0a23338)) * remove redundant parameters in pm-adapter (SD-1587) ([#1823](#1823)) ([e315ad4](e315ad4)) * table resize ([#1821](#1821)) ([e7e1eb8](e7e1eb8)) * text in new paragraph doesn't inherit styles (SD-1657) ([#1869](#1869)) ([275fef2](275fef2)) ### Features * dev collab mode ([#1860](#1860)) ([469477b](469477b)) * fix node types export, add introspection ([#1815](#1815)) ([9b8d0d4](9b8d0d4))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
styleContextparameter which was not being used. The converters get the numbering definitions and linked styles from theconverterContextso this parameter was not needed.docDefaultsif the document doesn't define them.defaultFontanddefaultSizeparameters that were passed to the converters were removed.docDefaultsand theNormalstyle's props fit into the style resolution chain was fixed so that it matches Word's behavior