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

Output produces different colored highlights as yellow highlights #135

Closed
wjfeeney opened this issue Sep 12, 2022 · 5 comments
Closed

Output produces different colored highlights as yellow highlights #135

wjfeeney opened this issue Sep 12, 2022 · 5 comments

Comments

@wjfeeney
Copy link

My highlights are in different colors. After using BibNotes Formatter: Create/Update Literature Note, all my different colored highlights appear as yellow highlights in the Literature Note. Can you fix your plugin so that the output reflects my highlights in the colors used? Thanks.

@Mauricioc93
Copy link

Hi, I am having the same issue. I would appreciate any help with this. Thanks for all your effort Stefano, the plugin is great.

@stefanopagliari
Copy link
Owner

@wjfeeney and @Mauricioc93. This is a feature that I would like to include in the future. I think that in theory you could already achieve this by adding to the "colour" settings an html tag to colour the imported text with a given colour. I have not tried it myself but it should be feasible

@Mauricioc93
Copy link

Thank you @stefanopagliari for the prompt reply. I realised later that the feature was not included yet. I would like to help with the feature implementation, but I am just getting into Obsidian. If you think it is an easy implementation then maybe it could be a way to start.

@stefanopagliari
Copy link
Owner

stefanopagliari commented Nov 4, 2022

The following html tags work to highlight the text (in this case "Test") in the colour indicated in the tag
<mark style="background: #FFB8EBA6;">Test</mark>

I think you can implement something similar in Bibnotes by specifying the setting for a given colour to be like this:"

<mark style="background: #HEXCODEOFTHECOLOUR;">{{highlight}}</mark>

I have not tested this, but it should work. Later I should be able to implement this in the code as an option

@Edilson-R
Copy link

What is the color palette? I don't know what the hex code is for the other colors.

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

No branches or pull requests

4 participants