* Detects whether a string contains HTML markup. Granola returns markdown for * `summary_markdown`, but this guard lets us defensively strip tags if the API * ever emits HTML, without mangling legitimate markdown.
(value: string)
| 144 | * ever emits HTML, without mangling legitimate markdown. |
| 145 | */ |
| 146 | function looksLikeHtml(value: string): boolean { |
| 147 | return /<\/?[a-z][\s\S]*?>/i.test(value) |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Assembles the document content from a note's title and summary. Prefers the |