Skip to content

pypandoc > 1.6.4 breaks relative media links #294

Open
@lmende

Description

@lmende

with:
[WARNING] Could not fetch resource ./plantuml/951024a08973cc301dbab7d20b52fd3a.svg: PandocResourceNotFound "./plantuml/951024a08973cc301dbab7d20b52fd3a.svg"

Steps to reproduce:

  1. string with html_content:
html_content = '''
<h2>foobar</h2><p><img src="./plantuml/951024a08973cc301dbab7d20b52fd3a.svg" class="uml" alt="uml diagram" title="" /></p>
'''
  1. convert with
output = pypandoc.convert_text(
                    html_content,
                    to='docx',
                    format='html',
                    outputfile= 'huhu.docx',
                )

produces docx w/o image even if I provide kwarg cworkdir. Conversion with pandoc on cmd line works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    waitingWaiting for User Input

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions