-
-
Notifications
You must be signed in to change notification settings - Fork 71
Only support ANSI codes in preformatted blocks #59
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
Comments
I researched this and discovered what is going on. The gist is the ANSI codes are being reset for each line. In renderer.go, all the highlight region definitions like The following snippet is an example that illustrates the above description. Note, of course to test it out on a real page, you must convert the
For the makeworld.gq banner, it could be fixed in the content by adding the If the user config has Also, if users have defined color overrides, for example |
Thank you for discovering what was causing this bug, it seems obvious now :)
Doesn't make much sense for ANSI art to have to change to support my client, so I definitely want to figure out that long term solution. As for the changing colors in the link text, I'm pretty opposed to that. I don't like the idea of ANSI codes being able to affect user-defined colors for special gemtext lines. Maybe an overall solution could be this:
Also:
I've spun this up into a new issue, thanks for the suggestion. See #79. |
Support for ANSI color codes in preformatted blocks was added in 819023d and will be in v1.6.0. The suggestions I made earlier about changing the user's themed background and text colour were not applied. |
No description provided.
The text was updated successfully, but these errors were encountered: