logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
30.79k stars 1.79k forks source link

Highlighting syntax is not valid for text containing line breaks. #5602

Open Sun-Pengcheng opened 2 years ago

Sun-Pengcheng commented 2 years ago

What happened?

Highlighting syntax is just valid for text in a line. If the text highlighted is with multi-lines (in a block), the highlight is not valid. This appears on both Windows and Android platforms. Additionally, the same highlighting syntax is valid in Obsidian.

Reproduce the Bug

  1. In a block, write text with multi-lines
  2. Highlight the text using "==" or "^^^^"

Expected Behavior

Fix the bug

Screenshots

image

image

image

Desktop Platform Information

Windows 10, 21H2 Loqseq 0.7.1

Mobile Platform Information

Huawei mate 10, Harmony OS 2.0.0 Loqseq 0.7.1

Additional Context

No response

Sun-Pengcheng commented 2 years ago

Supplement: The bolding syntax (**) meets the same bug for text in multi-lines**. It also works in Obsidian. Example:

image

image

Bad3r commented 1 year ago

I am able to reproduce this issue in the latest release 0.8.14

Sun-Pengcheng commented 1 year ago

This issue still exists in the latest release 0.8.18. The bold and Italics syntax are invalid for multi-lines too.

diyanko commented 3 months ago

image Seems to still be present