humanmade / humanmade/h2

Email highlighting breaks code blocks

Open
#426 2 comments 0 reactions 0 assignees View on GitHub
Bug Medium priority
Dominant language
JavaScript
Stars
8
Forks
1
Avg merge
1d 9h
Merged PRs (30d)
7

Description

## Issue Description

If inserting text like,
```
Some text with an `email@address.com` and a following `code block`
```
is inserted to the text, it is not parsed correctly:

![image](https://user-images.githubusercontent.com/442115/82278452-3c88ee00-9958-11ea-990a-70362d901966.png)

Adding a leading space to the
```
` email@address.com`
```
causes it to correctly wrap the email as code, but I believe that putting `` around text should prevent it from being auto-highlighted into an email. GitHub and Slack both render the email as a code block with no hyperlink, as I have come to expect.

## Steps to reproduce:

Paste the markdown above containing an email into H2; save and publish, or even preview, and see that the email address breaks the code backticks.

## Expected Result:

Text within backticks would not get treated as an email hyperlink.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.