Skip to content

Avoid URL checks inside code blocks #3148

Open
@lukicdarkoo

Description

@lukicdarkoo

The test_references.py test doesn't consider whether the link is found in a code block or not:

for m in re.finditer(r"[^!]\[(.*?)\]\(([^\)]+)\)", content):

We should be able to write anything in code blocks, without restrictions. It might be possible that some other tests are also checking the content in the code blocks.

The problem first occurred in:
https://github.com/cyberbotics/webots/pull/2279/checks?check_run_id=2775845374

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprove or fix the documentation (MD files only, no software development)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions