SkepticMystic/nlp

FR: CSS class for every sentence

chrisgrieser opened this issue · 4 comments

adding a css class to every sentence as well would also be useful.

This would enable e.g. .Sentence:nth-child(even) to apply alternating highlighting etc.

@chrisgrieser this now works in 0.1.0 :)
There is a separate command for Highlight Sentences. I don't think CM6 likes having nested decorations, so I can't mark a part of speech inside a sentence, or wrap a sentence span around a PoS span.
So they are separate for now

great! 🤩

Mmmh, I tried it out on some random online article and it does not. 🙁 Here is the note and the console log:
Lorem Note.md
obsidian.md-1641136740660.log

Can you give it a try on 0.1.1. I'm still not sure what the bug is exactly, but I managed to get it working on the example you sent