trentm / trentm/python-markdown2

Looking for support for WikiLinks

Open
#221 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.8k
Forks
459
Avg merge
2d 19h
Merged PRs (30d)
4

Description

I am looking in Markdown2 for the ability to identify and process WikiLinks.

Blocks identified as [[mypage]] would be translated to:
<a class="localLink" href="/mypage.html">mypage</a>

At initialisation base_url='/', end_url='.html', html_class='localLink would be passed.

The referenced implementation was originally built as an extension to Python-Markdown.

If not, happy to help build one but would need a bit of a heads up on how to build an extra.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Python-Markdown WikiLinks implementation and its extension documentation. Confirm markdown2's extension initialization path, then implement [[mypage]] rendering with configurable base_url, end_url, and html_class; done means the requested anchor output is produced.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.