Copying rich-text from Docx document, and paste as "Rich Text" (in Browser/Word Doc, etc)?
Posted: 21 Jan 2019, 13:25
Dear community,
I have been looking for a way to quickly convert Markdown syntax into "paste-able" contents into Google Docs. I have started this page on Pandoc discussion Google group, but have not received a good answer.
Now, my plan is to have pandoc do its own conversion job and delegate the pasting job to AHK.
Yet, I found this post to be super relevant. However, I can only get the "pure text" from the *.docx file. Only pure/plaintexts were pasted to where I type "ttest".
Is pasting the pure text and ignoring the heading/bolding syntax the expected behavior, or am I invoking/defining the shortcut wrongly?
Thank you in advance!
I have been looking for a way to quickly convert Markdown syntax into "paste-able" contents into Google Docs. I have started this page on Pandoc discussion Google group, but have not received a good answer.
Now, my plan is to have pandoc do its own conversion job and delegate the pasting job to AHK.
Yet, I found this post to be super relevant. However, I can only get the "pure text" from the *.docx file. Only pure/plaintexts were pasted to where I type "ttest".
Code: Select all
::ttest::
myinputfile := "c:\users\llinfeng\somewhere\DOC_with_Headers_and_BOlding_and_otheres.docx"
clipboard:=ComObjGet(myinputfile).Range.FormattedText.Copy
Send ^v ; paste
Return ; added return
Thank you in advance!