diff --git a/packages/core-data/src/footnotes/index.js b/packages/core-data/src/footnotes/index.js index 9458290f9cb4..b80ba65d142e 100644 --- a/packages/core-data/src/footnotes/index.js +++ b/packages/core-data/src/footnotes/index.js @@ -75,6 +75,14 @@ export function updateFootnotesFromMeta( blocks, meta ) { html: replacement.innerHTML, } ); countValue.text = String( index + 1 ); + countValue.formats = Array.from( + { length: countValue.text.length }, + () => countValue.formats[ 0 ] + ); + countValue.replacements = Array.from( + { length: countValue.text.length }, + () => countValue.replacements[ 0 ] + ); replacement.innerHTML = toHTMLString( { value: countValue, } );