Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Feature request: Inline links #42

Closed
charlesroper opened this issue Feb 2, 2022 · 3 comments · Fixed by #43
Closed

Feature request: Inline links #42

charlesroper opened this issue Feb 2, 2022 · 3 comments · Fixed by #43
Labels
enhancement New feature or request needs investigation Unsure whether it's a bug or not. Investigate

Comments

@charlesroper
Copy link

charlesroper commented Feb 2, 2022

Love this!

Just wondering if it would be possible to add an inline option to the styles? This would render a navbar style ToC, something like this:

Item 1 | Item 2 | Item 3 | Item 4

Perhaps let people specify the delimiter, too?

Here is what the header of my daily notes look like. The to-do and notes links are generated by dynamic toc. You can see why I immediately wanted an inline ToC. :)

Many thanks!

2022-02-02_01

@Aidurber
Copy link
Owner

Aidurber commented Feb 2, 2022

You would only be able to render a single level of links. So lets say you have a document with the following structure

## Level 2 Heading A
### Some subtitle

## Level 2 Heading B
### Another subtitle

You would only realistically be able to generate it from the level 2 headings, the topmost heading.

@Aidurber Aidurber changed the title Inline links Feature request: Inline links Feb 2, 2022
@Aidurber Aidurber added enhancement New feature or request needs investigation Unsure whether it's a bug or not. Investigate labels Feb 2, 2022
@Aidurber
Copy link
Owner

Aidurber commented Feb 2, 2022

Released in 0.0.25

@charlesroper
Copy link
Author

Haha, wow, I posted this when I went to bed (was thinking about tomorrow's daily) and when I get back to my computer next day, you've already pushed the change. ❤️

Have just tried it and it works perfectly. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request needs investigation Unsure whether it's a bug or not. Investigate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants