trentm / trentm/python-markdown2
[Feature request] language guess for code blocks
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.8k
- Forks
- 459
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 4
Description
I've bee looking for a bit but I can't find a way to add language detection to code blocks. Am I missing something or is this feature not implemented yet?
For now it gives something similar to what we have on github:
def f(x):
return x
def f(x):
return x
I would like to have something like in stackoverflow:
If this doesn't exist, do you have an idea on what can be done? Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the markdown2 fenced-code parsing and rendering entry points, then review how language annotations are handled and whether existing tests cover code blocks. Done should include an agreed detection behavior, documented limitations, and tests for unlabeled and explicitly labeled blocks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- content
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100