dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.68k stars 252 forks source link

Running into "too many nested note refs" in legitimate use cases #3907

Open nickolay-kondratyev opened 1 year ago

nickolay-kondratyev commented 1 year ago

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Describe the bug

Running into too many nested note refs in legitimate use cases.

To Reproduce

Have notes that are ref nested for 4 layers.

Expected behavior

Renders

Screenshots

Get too many nested note refs image.

Screen Shot 2023-02-14 at 3 59 04 PM

Additional context

This is a constant that needs to be modified to be relaxed https://github.com/dendronhq/dendron/blob/2c500b18d24f6e8189a5b99f43bfea98f0f8d98e/packages/unified/src/remark/noteRefsV2.ts#L238 or made into configuration value. (A default value of 5-6 seems more appropriate)

Additional Notes

Embedding notes is very useful when combined with collapsible feature

<details>
<summary>summary</summary>

![[embedded-note]]
</details>