Fix komga text color#1532
Conversation
|
|
||
| // Replace <a> tags with the text inside so its not blue | ||
| $('a').each((_, a) => { | ||
| $(a).replaceWith($(a).text()); |
There was a problem hiding this comment.
you can use plugin custom css instead
There was a problem hiding this comment.
idk if that would be better tbh should links even exist in reader
cus u just click on them and the reader gets screwed up
(also most of the a tags in komga shouldent even be detected, in the response they are self closing but html doesent support self closing a tags so the tag just contains the entire rest of the chapter content
There was a problem hiding this comment.
*self closing tags should be valid btw as the html document is in XML mode that does support self closing tags (hence why the links arent there in browser) but the html parser used doesent seem to support it, even tho its in xml mode
const $ = parseHTML(htmlString, { xmlMode: true });There was a problem hiding this comment.
or maybe that does support but cus its also outputting in xml the reader view cant show it cus reader view doesent have the html doctype thing to put it in xml mode
There was a problem hiding this comment.
*there are some properly formatted links sometimes like chapter titles sometimes link back to table of contents, and toc has links ect. but IMO having them be actuall links just makes the reader experience worse cus that is not how you should be navigating the novel (if it even works)

No description provided.