SkepticMystic / nlp

GNU General Public License v3.0
69 stars 5 forks source link

FR: CSS class for every sentence #12

Closed chrisgrieser closed 2 years ago

chrisgrieser commented 2 years ago

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.

SkepticMystic commented 2 years ago

@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

chrisgrieser commented 2 years ago

great! 🤩

chrisgrieser commented 2 years ago

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

SkepticMystic commented 2 years ago

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