Python-Markdown / markdown

A Python implementation of John Gruber’s Markdown with Extension support.
https://python-markdown.github.io/
BSD 3-Clause "New" or "Revised" License
3.74k stars 858 forks source link

Added support for alternative link text for wikilinks extension. #1382

Closed talamus closed 11 months ago

talamus commented 11 months ago

This is a really simple change to the wikilinks extension that adds support for the alternative link text: \ https://community.telligent.com/community/10/w/user-documentation/62141/how-do-i-use-wiki-link-syntax#Using_alternative_link_text

The Finnish language uses inflection heavily, so most links need to have an alternative name:

Lue täältä lisää [[ meidän koiramme | meidän koristamme! ]]

(If a thing like this looks suitable for a merge, I can add test cases and the documentation.)

waylan commented 11 months ago

This was previously proposed in #541 and rejected. I believe there are existing third-party extensions which support this feature already. I would suggest exploring those for one which meets your needs.