Python-Markdown plugin that adds handling of Gollum style links. Gollum is wiki used in Github projects.
Note that at the moment it just adds parsing of link tags in a form [[link-text|linked-resource]]
.
You would need to add other Gollum syntax as needed.
Usage is similar to standard markdown.extensions.wikilinks
extendsion:
import markdown
from markdown_gollum import wikilinks
out = markdown.markdown(
'[[link text|link reference]]',
extensions=[
wikilinks.WikiLinkExtension(
base_url='', end_url='', html_class='')
]
)
print(out) # <p><a href="link-reference">link text</a></p>