Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 1x 51x 6x | import type {
ContentModelFormatContainerFormat,
FormatParser,
} from 'roosterjs-content-model-types';
/**
* @internal
* Parser for processing container formatting specific to Word Desktop
* Removes negative margin-left values which are commonly used in Word lists
* @param format The container format to modify
*/
export const wordContainerParser: FormatParser<ContentModelFormatContainerFormat> = (
format
): void => {
if (format.marginLeft?.startsWith('-')) {
delete format.marginLeft;
}
};
|