diff --git a/main.py b/main.py index be09943..4fc1ebc 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ import argparse import os -__version__ = "0.3.1" +__version__ = "0.3.2" parser = argparse.ArgumentParser() diff --git a/obsidian_parser/obsidianparser.py b/obsidian_parser/obsidianparser.py index 3674de4..85cb3b1 100644 --- a/obsidian_parser/obsidianparser.py +++ b/obsidian_parser/obsidianparser.py @@ -207,8 +207,9 @@ 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_bundle_name = os.path.basename(hugo_bundle_dir) + hugo_link = f'![{link["text"]}]({hugo_bundle_name}/{link["link"]})' # HTML Link + hugo_link = f'![[{hugo_bundle_name}/{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 c123e91..03d8591 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.1", + version="0.3.2", description="Demo library", long_description=long_description, long_description_content_type="text/markdown",