ozum / vuepress-bar

VuePress sidebar and navbar generator based on file and directory structure. Focus your documents, not sidebar or navbar.
90 stars 40 forks source link

if there is a second - (hyphen) in the file name, it is not converted to a space #45

Open ssuess opened 3 years ago

ssuess commented 3 years ago

If I have documents in my tree like:

01.Item-one
02.Item-number-two

they will render with a space between the first and second word, but between the second and third the hyphen (or dash if you prefer) will render, like so:

Item One Item Number-two

It seems to me that a hyphen should always render as a space unless a sidebar filter is applied to it.

For now, I wrote a special sidebar filter for my particular use case, but this seems like something that should be fixed for all such items.