hypothesis / hypothesis/client

Do not apply mention detection inside code blocks

Open
#6,921 0 comments 0 reactions 0 assignees View on GitHub
project: @mentions
Dominant language
Mustache
Stars
730
Forks
224
PR merge metrics
No merged PRs in 30d

Description

Given annotation markdown containing mention-like text inside a code block:

Image

Hypothesis will try to parse `@foo` as a mention, converting into a tag:

Image

We have formulated the pattern used to detect mentions to try and avoid this happening frequently when "@" appears in the middle of text, but there are still cases like the above where it can happen.

Aside from code blocks, we may also want to exclude block quotes and math.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.