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

Improve criticmarkup highlighting #128

Closed
SidOfc opened this issue Sep 18, 2020 · 6 comments
Closed

Improve criticmarkup highlighting #128

SidOfc opened this issue Sep 18, 2020 · 6 comments
Assignees
Labels
bug:report Something does not work as intended / expected.

Comments

@SidOfc
Copy link
Owner

SidOfc commented Sep 18, 2020

So, something strange happened.

No change to my vimrc, I just did an update to the last version (you pushed some changes last night and today) and now the conceal is working again. Even the criticmarkup stuff.

I still have a suggestion: in substitution highlight can you eliminate the opening and closing tags? {~~ and ~~} and leavinge only something like soh~>so.

You can see in the picture below how it looks now.

criticmarkup

Originally posted by @samarulmeu in #126 (comment)

@SidOfc SidOfc self-assigned this Sep 18, 2020
@SidOfc SidOfc added the feature:request Requesting new and additions to existing features. label Sep 18, 2020
@SidOfc SidOfc added bug:report Something does not work as intended / expected. and removed feature:request Requesting new and additions to existing features. labels Sep 18, 2020
@SidOfc
Copy link
Owner Author

SidOfc commented Sep 18, 2020

@samarulmeu alright this one is done, turns out I forgot to rename some CriticMarkup syntax groups in specific places which prevented them from being concealed. I changed this from a feature request to a bug report as this was in fact a bug in the code, cheers!

Closing this now, feel free to let me know if anything is wrong with it 👍

@SidOfc SidOfc closed this as completed Sep 18, 2020
@samarulmeu
Copy link

Nice work. It looks great!

@samarulmeu
Copy link

Hello!

I do not start a new issue and hope you will get this message.

I started again using CriticMarkup and I find that the highlight option is not rendered nice. Will it be possible to have it only yellow background (no italic and bold, as to not mess with text formatting).

Thank you!

@SidOfc
Copy link
Owner Author

SidOfc commented Mar 13, 2022

Hello @samarulmeu, long time since I heard from you :)

CriticMarkup, like any other highlighting added by mkdx, has its own highlighting groups. It is dependent on your theme how these will turn out but you can always manually override them by restyling them in your vimrc. See :h mkdx-highlight-critic-add for example, there you can find a list of all CriticMarkup highlight groups and what they are linked to.

See :h highlight for more info on how to create/overwrite custom highlights.

@samarulmeu
Copy link

Hello @SidOfc!

Thanks for the explanation. I managed to change the colors and font attributes.

I was silent because the plugin is just working great. Nothing to complain ;). But I am following all the issues and improvements.

Again, great work!

@SidOfc
Copy link
Owner Author

SidOfc commented Mar 14, 2022

Cheers @samarulmeu, and yeah no worries of course, happy to see recurring names :)

Awesome that you found a solution too, in most cases you can probably find hints in the help file or even the README, both are quite expansive :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:report Something does not work as intended / expected.
Projects
None yet
Development

No branches or pull requests

2 participants