trentm / trentm/python-markdown2

[shadow] smarty-pants and quotes in between backticks

Open
#48 0 comments 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

_This is a _shadow issue* for Issue 48 on Google Code (from which this project was moved).
Added 2010-11-05T05:03:25.000Z by livibet...@gmail.com.
Labels: Type-Defect, Priority-Medium.
Please make updates to the bug there.*

Original description

smarty-pants shouldn't modify quotations marks or anything in between backticks.

The step to reproduce:

1. echo "\`'abc'\`" > test.mkd
2. python markdown2.py -x smarty-pants test.mkd

The content of test.mkd is

    `'abc'`

The correct output should be

    <p><code>'abc'</code></p>

But I got

    <p><code>&#8217;abc&#8217;</code></p>

I am using r263.

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 reproducing the command shown with python markdown2.py and the smarty-pants extension using test.mkd. Trace how backticks and quoted text are processed, and verify that the output preserves the single quotes inside the code span; updates are directed to the linked Google Code issue.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.