Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pypandoc > 1.6.4 breaks relative media links #294

Open
lmende opened this issue Sep 16, 2022 · 2 comments
Open

pypandoc > 1.6.4 breaks relative media links #294

lmende opened this issue Sep 16, 2022 · 2 comments
Labels
waiting Waiting for User Input

Comments

@lmende
Copy link

lmende commented Sep 16, 2022

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.

@JessicaTegner
Copy link
Owner

@lmende can you confirm that you have set the "--resource-path" options?

In addition, I can't seem to figure out, why specifically pypandoc > 1.6.4 would break this.

@JessicaTegner JessicaTegner added the waiting Waiting for User Input label Sep 23, 2022
@sanjass
Copy link

sanjass commented Dec 24, 2022

Setting sandbox=False fixed it for me, but see my full comment here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Waiting for User Input
Projects
None yet
Development

No branches or pull requests

3 participants