Skip to content

Wrong path in sandbox/wiki.py #656

@jcw

Description

@jcw

The markdown script is in ../lib/, which means wiki.py needs a minor change:

 import re
 from os.path import *

-sys.path.insert(0, dirname(dirname(abspath(__file__))))
+sys.path.insert(0, dirname(dirname(abspath(__file__))) + '/lib')
 import markdown2

 wiki_page = """

I was looking at this, because I'd like to convert ... [[some link]] ... to proper links (for content which was created in Obsidian) and it looks like wiki.py could easily be tweaked to make this work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions