Skip to content

Fix markdown and JSON twins: bytes, Show Notes, entities; add tags, chapters, media URLs to episode markdown - #1195

Merged
CGBassPlayer merged 6 commits into
JupiterBroadcasting:developfrom
CGBassPlayer:feature/json-pages
Nov 24, 2026
Merged

CGBassPlayer merged 6 commits into
JupiterBroadcasting:developfrom
CGBassPlayer:feature/json-pages

Conversation

@CGBassPlayer

Copy link
Copy Markdown
Collaborator

Follow-up to #1183, rebased onto current develop (only the commits after what #1183 merged).

Fixes

  • bytes minified to a float: hugo --minify rewrote 50108000 as 50108e3. [minify.tdewolff.json] keepNumbers = true, plus a unit test that checks a minified build (test/unit/test_public_json.py, needs PUBLIC_DIR).
  • Show Notes in .md: scraped notes indent every list line by 2 spaces, and only the first line's indent was trimmed, so CommonMark nested later bullets under the first. Before: 1163 of 1585 episodes affected; after: 0.
  • Multi-paragraph descriptions keep every line in the blockquote, no raw \r; llms.txt entries stay on one line.
  • HTML entities (', &, ...) in note link titles are decoded in the .md output.

Added to episode .md

Tags, header image, alternate and OGG audio, video / HD / mobile URLs, and a ## Chapters section (HH:MM:SS title), so the markdown has the facts the JSON has.

Other

  • /show.md lists active and archived shows in separate sections.
  • show.md About no longer repeats the description or leaks <br/>.
  • llms.txt: root intro names every show; per-show archive lists missing episode numbers.
  • /show/ HTML page: dropped an empty padded container that left a large gap under the heading.
  • docs/json-schema.md: the jq example used 0693.json (404); the real path is 693.json. Special-episode examples name their show.

Testing

test_llms.py, test_json.py and test_show.py pass against a local dev server (495 tests, browser-based head-link tests not run), and the bytes unit test passes on a --minify build. New e2e tests cover Show Notes indent, blockquote, entities, single-line llms.txt entries, episode-markdown/JSON parity (40 spread episodes), and the /show.md grouping.

Not changed: the .md show_name casing for This Week in Bitcoin (comes from source front matter).

@CGBassPlayer
CGBassPlayer merged commit b29613a into JupiterBroadcasting:develop Nov 24, 2026
1 check passed
@CGBassPlayer
CGBassPlayer deleted the feature/json-pages branch November 28, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant