logseq-toc-plugin icon indicating copy to clipboard operation
logseq-toc-plugin copied to clipboard

Title Display and Hierarchy

Open Morganwan90 opened this issue 1 year ago • 0 comments

This plugin perfectly solves the problem of the Table of Contents (TOC), but I encountered two issues.

1. Hiding block attributes in titles

When I use Omnivore (and possibly in other uses), titles with block attributes are displayed in full, which makes the titles too long and the readability is low.

截图_20240723131308

I tried to solve this problem by placing the block attributes in the first block under the title, which can solve the problem of long titles. 截图_20240723131510

but this leads to inconsistency in the overall usage. take my note above as example, when I click on tags, I hope to display this block and its sub-list, but since I moved the block attributes to the first sub-list, in linked references, it will not cover the title and its sub-blocks, but will only display the attribute block. 截图_20240723131644

So I hope the TOC plugin can consider hiding the block attributes after the soft line break in the title.

2. Partial hierarchy display issues

Taking this diary page as an example, you can see that I have two third-level titles, which should be at the same level, but in TOC, the second title is displayed as the next level.

截图_20240723132129

Morganwan90 avatar Jul 23 '24 05:07 Morganwan90