trentm / trentm/python-markdown2

Support for reduced featureset, or mini-markdown

Open
#193 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'd like to be able to parse comments, similarly to stack overflow, only recognising a subset of markdown syntax: [link](http://example.com) *italic* **bold** code``, ignoring multiple paragraphs and different kinds of blocks.

I guess this would be _run_span_gamut, but ignoring image links. A particular interest is keeping the safe_mode functionality.

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 by reading the markdown span-processing path around _run_span_gamut and the existing safe_mode behavior. Check how links, emphasis, code, images, paragraphs, and block syntax are currently handled, then define the reduced parsing behavior while preserving safe_mode. Done means comments recognize the requested subset and ignore the excluded structures.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
content
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.