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
@@ -33,7 +33,7 @@ def test_rows_come_from_the_payload_with_descriptions_resolved() -> None:
|
||||
"21584046-56d5-44c4-8b18-7e15dc659827/overview")
|
||||
assert first["location"] == "Stockholm" and first["department"] == "Engineering"
|
||||
assert first["remote"] == "ON_SITE"
|
||||
assert first["description"].startswith("Klarna, briefly At Klarna")
|
||||
assert first["description"].startswith("## Klarna, briefly\nAt Klarna")
|
||||
assert "<" not in first["description"] and "$" not in first["description"][:3]
|
||||
assert all(r["description"] for r in rows)
|
||||
# The day the posting was published, not the day it was drafted (12:27).
|
||||
|
||||
Reference in new issue
Block a user