Find highlighted text in current markdown document

What I’m trying to do is get a list of highlighted text in a document so I use find with == as the search criteria and that works, kind of, in that the found list is including lines that are above the highlighted text in the document. I can use it like this but I’d prefer it to be more correct. See images.

Document content:

result:

What exactly would be “more correct”?

I’d like that the search shows just the lines with highlighted text. At the moment, see the screen grabs, I’m getting two lines found but the result is including previous lines, which seems incorrect.

OK, it doesn’t like it if the highlight is the first thing on a line. When it is, the prior line is included with the highlighted text in the find. I add some text before the highlight everything looks fine.

DT shows the search result in context. AFAIK, it always does that.

1 Like

How do you mean?

I mean that it shows not only the search result itself, but also some surrounding context. If your highlight is the first thing on a line, context would include the previous line (or part of it). Although I don’t see this behavior with PDFs, for example. Perhaps @BLUEFROG knows more about that.

got it, thanks. Like I said, it’s workable as it is. In fact it updates as I add content to the document, which is really handy.

The annotation inspector is not only useful for PDFs – also for markdown documents :smiley: It shows highlights + critic markup (underline, strikethrough). You can click the annotation to navigate to its place in the document.

Bonus tip: You can hide/show individual columns in the inspector. I usually only show location (line/page) and content.

You don’t say exactly what you want and what for, but Tools > Summarize Annotations also works for markdown documents. Depending on the use case, as Markdown or as Sheet might be preferable.

2 Likes