(Bug report) markdown Code block recognition error #1602

Open
opened 2025-10-01 16:05:47 -05:00 by giteasync · 2 comments
Owner

Originally created by @Baikeryoyo on GitHub.

Trilium Version

0.60.4

What operating system are you using?

Windows

What is your setup?

Local (no sync)

Operating System Version

windows 11

Description

When I copy a block of code from Markdown to Triliun, I copy the blank line after the block to Triliun as if it were the content of the block
For example, here is markdown

xxx

Blank line
content

This is copied to Trilium

xxx
Blank line

content

Error logs

No response

Originally created by @Baikeryoyo on GitHub. ### Trilium Version 0.60.4 ### What operating system are you using? Windows ### What is your setup? Local (no sync) ### Operating System Version windows 11 ### Description When I copy a block of code from Markdown to Triliun, I copy the blank line after the block to Triliun as if it were the content of the block For example, here is markdown ``` xxx ``` Blank line content This is copied to Trilium ``` xxx Blank line ``` content ### Error logs _No response_
Author
Owner

@Baikeryoyo commented on GitHub:

My Markdown editor is Typora, but it shouldn't have formatting problems
You can try to copy it
When the document is copied to Trilium, the blank line after the code block is treated as the content of the code block, resulting in an extra blank line after the code block in Trilium, and no blank line between the code block and the paragraph
image
image
image

@Baikeryoyo commented on GitHub: My Markdown editor is Typora, but it shouldn't have formatting problems You can try to copy it When the document is copied to Trilium, the blank line after the code block is treated as the content of the code block, resulting in an extra blank line after the code block in Trilium, and no blank line between the code block and the paragraph ![image](https://github.com/zadam/trilium/assets/57838797/33338d6f-b582-44f5-a9aa-2f747ea236e2) ![image](https://github.com/zadam/trilium/assets/57838797/4906f741-c7da-4fb7-8ad5-4dbd21490687) ![image](https://github.com/zadam/trilium/assets/57838797/85b16a4e-6962-42ca-b659-f6774d5cce52)
Author
Owner

@zadam commented on GitHub:

Not sure if this is a github formatting problem, but I don't really understand the issue ...

@zadam commented on GitHub: Not sure if this is a github formatting problem, but I don't really understand the issue ...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TriliumNext/Trilium#1602
No description provided.