Skip to content

Conversation

@chittolinag
Copy link
Contributor

Tracked formatting changes were being dropped after export.

The reason is that we were not re-generating the rPrChange element before decoding the run node. We do encode them correctly, but we were just missing doing it in the opposite direction.

@linear
Copy link

linear bot commented Jan 27, 2026

* @returns {Object|undefined} Properties element for trackFormat change or undefined.
*/
export const createTrackStyleMark = (marks) => {
export const decodeTrackFormatMark = (marks) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed this - the current name seems counter-intuitive, it's not creating a mark, but instead decoding it back to OOXML.

Thoughts?

@chittolinag chittolinag marked this pull request as ready for review January 27, 2026 16:18
@chittolinag chittolinag changed the title fix: don't drop track format on run nodes SD-1460 - fix: don't drop track format on run nodes Jan 27, 2026
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.

4 participants