Skip to content

Commit 9f1c2dd

Browse files
committed
fix: add alignment attribute to heading, text substitute
1 parent f27d809 commit 9f1c2dd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/block/heading/substitute.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const substitute = {
55
return {
66
content: oldAttributes.text,
77
level: oldAttributes.textTag ? Number( oldAttributes.textTag.replace( 'h', '' ) ) : 2,
8+
textAlign: oldAttributes.contentAlign,
89
}
910
},
1011
}

src/block/text/substitute.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const substitute = {
44
transform: oldAttributes => {
55
return {
66
content: oldAttributes.text,
7+
align: oldAttributes.contentAlign,
78
}
89
},
910
}

0 commit comments

Comments
 (0)