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

Implement text for wikiLink module #1768

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

Masterjun3
Copy link
Collaborator

Resolves #1760 . (Text missing from Youtube Descriptions)
Also resolves Text missing from TOC, which is a different method.

This implements InnerText of __wikiLinks being href if displaytext is empty. (For TOCs)
It also implements RenderTextAsync by using the same method as InvokeAsync, but only taking the display name. (For Youtube)

NOTE: One problem remaining is that on YouTube, the wiki links won't be a link, only text. That's because I can't format it into the displaytext ( href ) format, as with links, because I don't have the writerHelper that is used to convert the href to a full url. Trying to inject it gives System.InvalidOperationException: Unable to resolve service for type 'TASVideos.WikiEngine.AST.IWriterHelper' while attempting to activate 'TASVideos.ViewComponents.WikiLink'.

However, a non-link is better than no text at all.

Copy link
Collaborator

@nattthebear nattthebear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good step forward. Thanks for taking care of this.

@vadosnaprimer vadosnaprimer merged commit bfcb663 into main Feb 4, 2024
1 check failed
@vadosnaprimer vadosnaprimer deleted the wikilink-implement-textmethods branch February 4, 2024 19:40
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

Successfully merging this pull request may close these issues.

Wiki Links are not converted into text (e.g. for YouTube descriptions)
4 participants