Open ppanko opened 10 months ago
Here are two footnotes, the first inserted using the code from OP and the second inserted using
some text^[http://DrDoane.com]
[^1]: `<w:hyperlink r:id="https://github.com"><w:r><w:rPr><w:rFonts w:ascii="Arial" w:hAnsi="Arial" w:eastAsia="Arial" w:cs="Arial"/><w:i w:val="false"/><w:b w:val="false"/><w:u w:val="none"/><w:sz w:val="20"/><w:szCs w:val="20"/><w:color w:val="000000"/></w:rPr><w:t xml:space="preserve">https://github.com</w:t></w:r></w:hyperlink>`{=openxml}
[^2]: http://DrDoane.com
Tweaking the r:id to remove potentially special characters results in no difference (MS Word still errors on open).
The entire openxml format in the footnote seems to be an issue.
<w:footnote w:id="20">
<w:p>
<w:pPr>
<w:pStyle w:val="Notedebasdepage"/>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="Appelnotedebasdep"/>
</w:rPr>
<w:footnoteRef/>
</w:r>
<w:r>
<w:t xml:space="preserve"> </w:t>
</w:r>
<w:hyperlink r:id="https://github.com">
<w:r>
<w:rPr>
<w:rFonts w:ascii="Arial" w:hAnsi="Arial" w:eastAsia="Arial" w:cs="Arial"/>
<w:i w:val="false"/>
<w:b w:val="false"/>
<w:u w:val="none"/>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
<w:color w:val="000000"/>
</w:rPr>
<w:t xml:space="preserve">https://github.com</w:t>
</w:r>
</w:hyperlink>
</w:p>
</w:footnote>
<w:footnote w:id="21">
<w:p>
<w:pPr>
<w:pStyle w:val="Notedebasdepage"/>
</w:pPr>
<w:r>
<w:rPr>
<w:rStyle w:val="Appelnotedebasdep"/>
</w:rPr>
<w:footnoteRef/>
</w:r>
<w:r>
<w:t xml:space="preserve"> </w:t>
</w:r>
<w:hyperlink r:id="rId22">
<w:r>
<w:rPr>
<w:rStyle w:val="Lienhypertexte"/>
</w:rPr>
<w:t xml:space="preserve">https://DrDoane.com</w:t>
</w:r>
</w:hyperlink>
</w:p>
</w:footnote>
Attempting to add a hyperlink in a footnote via Rmd and knit to
rdocx_document
results in an "unreadable" file per Microsoft Word. See Rmd reprex below:sessionInfo()