Keep a description's headings, bullets and paragraphs, and draw them in the reader
The readers flattened a posting's HTML into one line with strip_html, so sections and bullets ran together. _shared.html_text gives a line per paragraph, '• ' before a list item and '## ' before a heading; every reader's description goes through it, sections read per role get their own headings, and the reader pane draws the lines as h3, ul and p. Excerpts leave the marks out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
17e7615599
commit
c497fe965d
44 files changed
+300
-147
No files matched your search
@@ -129,7 +129,7 @@ def test_detail_reads_the_text_and_the_date() -> None:
|
||||
assert asked[0]["query"] == gem.DETAIL_QUERY
|
||||
assert set(found) <= set(ats.DETAIL_FIELDS)
|
||||
assert found["posted"] == datetime.fromtimestamp(1787574069, tz=UTC)
|
||||
assert found["description"].startswith("Only the best engineers are being built here.")
|
||||
assert found["description"].startswith("## Only the best engineers are being built here.\n")
|
||||
assert "<" not in found["description"] and "&" not in found["description"]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user