Parsing readme markdown should allow html tags

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
html, markdown, python

Research direction

Find the README Markdown parsing entry point and its tests in the AddonManager repository; the issue does not name specific files. First trace how Markdown is rendered and why HTML tags are ignored, then check how the README or Addon Academy explains any security limitation. Done means the supported behavior is clear and the examples with sized img tags and video tags are handled as intended.

Written by the indexing model from the issue text.

Description

Currently, html tags are completely ignored. This may be a security things, but this breaks some expectations. Markdown is supposed to allow html tags. If there is a strong limitation, this should be reflected in the readme / addon academy.

For example:

  • Using an <img/> will simply be hidden. I prefer the img tag over ![](img.png) because I can set a custom width. All of my screenshots are retina, so displaying them in full-size would show unnecessary large images. Therefore I set the img width to half the size.
  • Another example is the <video> tag. Currently there is no way to show a usage video in the info page.
Dominant language
Python
Stars
24
Forks
36
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from FreeCAD/AddonManager

All issues in FreeCAD/AddonManager

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.