Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const LIST_ELEMENT_TAGS = ['UL', 'OL', 'LI'];
const LIST_ELEMENT_SELECTOR = LIST_ELEMENT_TAGS.join(',');
const END_OF_PARAGRAPH = 'EOP';
const SELECTED_CLASS = 'Selected';
const BASE_PADDING_WAC_LISTS = '1em';

interface WacContext extends DomToModelListFormat {
/**
Expand Down Expand Up @@ -159,9 +160,6 @@ const wacListItemParser: FormatParser<ContentModelListItemLevelFormat> = (
if (element.style.display === 'block') {
format.displayForDummyItem = undefined;
}

format.marginLeft = undefined;
format.marginRight = undefined;
};

/**
Expand All @@ -171,7 +169,7 @@ const wacListLevelParser: FormatParser<ContentModelListItemLevelFormat> = (
format: ContentModelListItemLevelFormat
): void => {
format.marginLeft = undefined;
format.paddingLeft = undefined;
format.paddingLeft = BASE_PADDING_WAC_LISTS;
};

/**
Expand Down
Loading
Loading