trentm / trentm/python-markdown2

What is the best way to avoid markdown parser in certain areas ?

Open
#262 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

Hi guys,

Working with mardown2, I am trying to generate some jinja2 code.
In my markdown file, I have a link that is dynamically set from a configuration.

[{{config.get_download_link}}]({{config.get_download_link}})

This generates the following output:

<p><a href="{{config.get_download_link}}">{{config.get<em>download</em>link}}</a></p>

It works fine from a markdown perspective, but I would like to avoid computing an HTML output between {{ and }}.

Is there a recommended way ? Any idea ?

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 issue's markdown example with the shown Jinja2 expressions and compare the generated HTML with the expected behavior. There are no files, tests, or entry points named in the issue; done would require an agreed way to prevent markdown processing inside the marked template expressions.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, python
Domain
content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.