Quill rich text editor not keeping font size on copy/paste

I am using the Quill rich text editor V2.0 on an xhtml page via Javascript. When I copy and paste text from MS word to the editor the font size is lost, this also happens on the demo on https://quilljs.com/

I investigated and found that when I paste text from Word with a font size applied it looks like this

<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Aptos, sans-serif;"><span style="font-size: 24.0pt; line-height: 107%;">Test 24</span></p>

but when I paste it to Quill it looks like this

<p>Test 24</p>

My guess is either the <span tag is removed when its within a <p tag on paste or everything in the <p tag is removed on paste.

Is there a way to keep all the details on paste or not lose font size when pasting?