Skip to content

Commit c017cff

Browse files
author
Dan Petranek
committed
Preserve margin-left block style
Support indentation by translating the margin-left inline style into block metadata. Reviewed by: melgar
1 parent fe0c9a5 commit c017cff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/library/getBlockData.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export default function getBlockData(
77
return new Map({
88
'text-align': node.style.textAlign,
99
})
10+
} else if (node.style.marginLeft) {
11+
return new Map({
12+
'margin-left': node.style.marginLeft,
13+
})
1014
}
1115
return undefined;
1216
}

0 commit comments

Comments
 (0)