Highlighting syntax is not valid for text containing line breaks.
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 45k
- Forks
- 2.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 105
Description
### 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
- Appearance on Logseq for Windows

- Appearance on Logseq for Android

- Appearance on Obsidian

### 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_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce the multiline highlighting case on Windows or Android, then trace the rendering path for the == and ^^^^ syntax. Done means highlighted multiline blocks render correctly on the affected platforms and the behavior matches the expected result shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure, markdown
- Domain
- content, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100