Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links with brackets doesn't get auto tooltip #103

Open
vaniwiki opened this issue May 21, 2024 · 11 comments
Open

Links with brackets doesn't get auto tooltip #103

vaniwiki opened this issue May 21, 2024 · 11 comments

Comments

@vaniwiki
Copy link

I know you mentioned that you don't support brackets in links, so this is a long shot... But I have hundreds of thousands of links in brackets! And I would very much like them to work with auto tooltip, how they were working previously... Maybe that was with the separate AutoTooltip plugin, but none the less...

Example of my links: [[books:bg:4:34|[Bg. 4.34]]]. Any other way to make it work than changing all of them?

@gerardnico
Copy link
Member

I can't change how dokuwiki parse the document unfortunately.

You can always disable it but you loose all the benefits.

@vaniwiki
Copy link
Author

The links themselves are fine, and It was working previously with another tooltip plugin, with brackets inside. So why should it not work now?

@vaniwiki
Copy link
Author

Wait, are you saying if I disable the link component, all the previous functionality will work as well? Like search highlights and so on...?

@gerardnico
Copy link
Member

Because I take over / parse the link component to allow formatted content inside (and all the features listed in the page)

dokuwiki does not offer any nested component inside a link. It's an url and a text.

https://combostrap.com/content/the-link-component-x0oocdu2#square_bracket_not_allowed

@gerardnico
Copy link
Member

Wait, are you saying if I disable the link component, all the previous functionality will work as well? Like search highlights and so on...?

Nope. You will loose it all.

@vaniwiki
Copy link
Author

Yes, I see now. But how then DokuWiki was doing that previously?

@vaniwiki
Copy link
Author

I mean, I love working with ComboStrap! But I'm just scrambling to get my website working again before lack of funds force me to close. I already lost my previous server due to low bank balance, then I switched over to my development server, that was unfortunately not ready... The reason I bother to change, upgrade server, convert tens of thousands of documents into frontmatter compatible, redoing so much of the work I've already done, starting from scratch... It's because of ComboStrap and all its fantastic functionality (that is nowhere else to be found). The positive far outweight the small gripes I have with it, and sometimes there is also misunderstanding in writing. I hope I did not offend you earlier... I think your work is absolutely genius, and I hope to be able to work with it for a long time to come. Indeed, if I ever get funded, you will be the first one I'll show my appreciation! (In the form of a humble donation most likely, but still..)

Sorry for the rant. I'll stop here, before I get in trouble. Just wanted you to know I appreciate your work. Thanks again. :)

@vaniwiki
Copy link
Author

Maybe it was the Autotooltip plugin that did it previously. If the plugin author could alter his plugin to work with ComboStrap descriptions, I could possibly go back to that one. Anyhow, that's another thing. Is there a way to escape it? I can alter links in my code, as long as they show up as brackets. Or html entity codes for the same? Wait, let me try...

@vaniwiki
Copy link
Author

Or html entity codes for the same? Wait, let me try...

Hah! How silly of me. Like you said...

@gerardnico
Copy link
Member

Ouah if html entities work, you should post your answer here.

The things is the link allow nested syntax in the description. May be that was a bad decision and I should have created another component but I wanted also to be move compatible.

In the previous setup, you can do anything with JavaScript ;)

@vaniwiki
Copy link
Author

Ouah if html entities work, you should post your answer here.

No, they don't work. Like you said, DokuWiki just takes a url and a text. So there is no solution to this as of yet.

In the previous setup, you can do anything with JavaScript ;)

I wish I knew programming... I only know css, wiki syntax and ComboStrap web markup. However, if I ever get my project funded, I will definitely hire someone to help with all the things I wish I knew. Then I could peacefully work on my wiki and archive content. And when that is up to standard, there are other archives that needs publishing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants