ebullient / ttrpg-convert-cli

Utility to convert JSON data (for content you own) from 5etools or pf2etools into Obsidian-friendly Markdown.
https://www.ebullient.dev/projects/ttrpg-convert-cli/
Apache License 2.0
149 stars 33 forks source link

Bestiary image is not url encoded🐛 #433

Closed Patafix closed 2 months ago

Patafix commented 2 months ago

If the url of the image contain space it's not working

The image should show

The image link is broken

Configuration

Sources:

{#if resource.description }
{#if resource.fluffImages && resource.fluffImages.size > 0 }{#let first=resource.fluffImages.get(0)}
![{first.title}]({first.vaultPath}#right)  
{/let}{/if}
{resource.description}

{#each resource.fluffImages}{#if it_index != 0}
{it.getEmbeddedLink}  
{/if}{/each}
{#else}
{#each resource.fluffImages}
{it.getEmbeddedLink} 
{/each}
{/if}

image

ebullient commented 2 months ago

Oh. This is when you are not copying locally, right? You're leaving images remote. I know what I did. In trying to fix the local copy path, I un-fixed the remaining remote path.

Patafix commented 2 months ago

Yes it's with remote link

Patafix commented 2 months ago

Thank you