I would like to get lines in viewport as they are actually rendered in UI. I can get logical lines with
view.state.doc.lineAt(position)
but that line object is a paragraph of text that wraps across multiple visible lines.
I tried to dig into Obsidian API and CodeMirror6 API documentation - but I can’t find a method that would help me extract rendered lines.