Skip to content

Python-Markdown plugin that adds handling of Gollum style links.

Notifications You must be signed in to change notification settings

dudarev/markdown-gollum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Python-Markdown plugin that adds handling of Gollum style links.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published