hackmdio / hackmdio/hackmd-io-issues

Cannot using toolbox to decorate text when multiple selecting texts

Open
#294 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

### Is this a hackmd.io issue?

- [x] Yes, the bug happens on https://hackmd.io

### What's the problem

When selecting multiple texts like this

abc
skip this line
cdf

and use the toolbox above to mark text as bold,
it turned out like this

**abc
cdf**
skip this line
**abc
cdf**

#### Current behaviour

> Screenshot (optional)

![image](https://user-images.githubusercontent.com/30391069/159185107-ccaad8e3-59e9-43d4-ae15-4d679dac234d.png)
![image](https://user-images.githubusercontent.com/30391069/159185113-146c5860-5bc9-4d41-9498-c6e5de27e087.png)

Provide steps to reproduce:

1. Selecting multiple texts with pressing CTRL key
2. Click on bold in the toolbox

#### Expected behaviour

Only the two sections become bold

#### Environment

I use HackMD on:

**Desktop**
- OS: Windows10
- Browser: Brave
- Browser Version: 1.36.116 Chromium: 99.0.4844.74 (正式版本) (64 位元)

---

This is not critical, but if you fix this, I would be happy.
Thanks.

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.