From 746ede29df1853b713bd9183a7007cf77e9f7b50 Mon Sep 17 00:00:00 2001 From: Damian Flynn Date: Mon, 5 Dec 2022 07:43:01 +0000 Subject: [PATCH] bug: images rel path on bundle images fix bump patch version --- main.py | 2 +- obsidian_parser/obsidianparser.py | 4 ++-- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 60ede95..be09943 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ import argparse import os -__version__ = "0.3.0" +__version__ = "0.3.1" parser = argparse.ArgumentParser() diff --git a/obsidian_parser/obsidianparser.py b/obsidian_parser/obsidianparser.py index 2681abe..3674de4 100644 --- a/obsidian_parser/obsidianparser.py +++ b/obsidian_parser/obsidianparser.py @@ -207,8 +207,8 @@ def retrieve_bundle_assets(self, hugo_page: str) -> None: link["link"] = "opps-missing-image.png" # Update the link in the Hugo Page. - hugo_link = f'![{link["text"]}]({link["link"]})' # HTML Link - hugo_link = f'![[{link["link"]}|{link["text"]}]]' # Wiki Link + hugo_link = f'![{link["text"]}](./{link["link"]})' # HTML Link + hugo_link = f'![[./{link["link"]}|{link["text"]}]]' # Wiki Link wiki_link = link["source"] note_content = note_content.replace(wiki_link, hugo_link) diff --git a/setup.py b/setup.py index 68f869c..c123e91 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ # This call to setup() does all the work setup( name="obsidian-parser", - version="0.3.0", + version="0.3.1", description="Demo library", long_description=long_description, long_description_content_type="text/markdown",