-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Allow annotation with different styles #76
Comments
I would like to see this, and I hope the eventual refactor will cover this use-case! |
I'm curious about the rewrite. I'm not sure, but I'd like to help, cause I really like this library! <3 |
I've unfortunately not made much progress. Most of Ariadne was written over a single night in a sort of fugue state some time ago. Needless to say, the internals reflect that. There are a few main goals I have for the rewrite:
I have some initial thoughts about the best approach for this. I'm thinking that a good strategy would be to create a type-directed API that behaves sort of like a DOM, but specifically geared toward displaying error diagnostics. That way, users can specify content and themeing independently of one-another and Ariadne turns into a sort of glorified document rendering engine. It would also allow for more 'alien' output formats: Ariadne could render diagnostics as HTML, JSON (for LSP), or any number of other formats. As with most of these things, I tend to go through long periods of inactivity and then have a single night of hyperfocus and everything suddenly comes together. I'm hoping inspiration will strike me soon. Thanks for your comment, it's forced me to put some of my thoughts into words and now I'm thinking about it again! Edit: I just noticed that you're interesting in helping. I'd really appreciate that! I've always found that collaborating with people is a great way to get my head to switch on and start doing stuff. Did you have any thoughts on all this? |
What I want to achieve:
Currently, there's only a way to underline some text with fancy utf-8 underscores.
I want something similar to this:
A possible way to achieve that:
My thought would be adding a
with_style
option to aLabel
and maybe restrict those toUnderscore
,Wiggly
andSpiky
(just making up names), whereUnderscore
would be the default,Wiggly
would use~
andSpiky
^
.One thing to note would be, that those notation shouldn't be allowed to have a message associated with them?
What do you think?
The text was updated successfully, but these errors were encountered: