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

FR: allow highlighting parts of sentence #5

Open
mikavilpas opened this issue Nov 13, 2022 · 1 comment
Open

FR: allow highlighting parts of sentence #5

mikavilpas opened this issue Nov 13, 2022 · 1 comment

Comments

@mikavilpas
Copy link

Hi, I have had the habit of adding a part of my sentence in bold so I cab identify which part I need to be looking at when reviewing quickly.

SmartSelect_20221113-071209_AnkiDroid

This way the part is highlighted when I review.

SmartSelect_20221113-071935_AnkiDroid

It is also very useful for long monolingual definitions where I can highlight just one part of a very long definition that just "clicks".

But these html tags seem to be wiped out when using anki-jrp.

Any ideas for a workaround?

@Ben-Kerman
Copy link
Owner

Since it would be very difficult to deal with HTML as a whole I wrote the converter to strip all tags and just keep line breaks. I'll look into maybe preserving certain tags whenever I get to work on this again and keep the issue open until then. In the meantime you'll have to manually readd the tags like above, unfortunately. Although it shouldn't be too much effort if you use Ctrl+B in the WYSIWYG editor

The parser that gets injected into card templates also can't really deal with anything but the simplest HTML structure, but you should still be able to get formatting tags like <b> to work as long as you keep them in the innermost position for a given character, so for example to bold {[宥|なだ]め[て=る];Y3} you need {[<b>宥</b>|なだ]<b>め</b>[<b>て</b>=る];Y3}

Sorry for not responding earlier

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

2 participants