summaryrefslogtreecommitdiff
path: root/Hutch/Views/Repositories/ReadmeView.swift
Commit message (Collapse)AuthorAgeFilesLines
* Add multi-language syntax highlighting (#16)Christian Cleberg35 hours1-6/+22
| | | | | | | | | | | | | | | | | Splash (Swift-only, since removed) left code rendering unhighlighted everywhere. Add Highlightr (highlight.js) behind a small SyntaxHighlighter service and use it on both surfaces: - Native file viewer: highlight NSAttributedString by language inferred from the filename, picking a light/dark theme from the trait style and re-highlighting on style changes. Falls back to plain text for unknown languages or very large files. - Markdown/org code blocks in the WKWebView (READMEs, tickets, comments): the web view disables JavaScript, so highlight server-side into inline color-styled spans. The color scheme is now part of the render/cache key since colors are baked into the HTML. Covered by unit tests for language mapping and highlighted output.
* Fix checklist rendering with inline code (#18)Christian Cleberg36 hours1-3/+1
| | | | | | | | The .task-list-item CSS used display: inline-flex, which turned each text run and inline <code> into separate rigid flex items so a bullet mixing code with text rendered malformed instead of flowing inline. The checkbox is already centered via vertical-align, so switch to plain inline display and let the fragments flow and wrap naturally.
* fix: render code span contents literallyChristian Cleberg2026-07-151-7/+13
| | | | | | | | | | | processInline protected allowlisted HTML tags before it handled code spans, so a `<b>` written inside backticks was carried through as a live tag and applied formatting instead of rendering as text. Every other inline pass ran against code span contents for the same reason, so `**x**` in backticks was emitted as bold. Protect code spans first with their contents escaped, which takes them out of reach of the tag, emphasis, and link passes.
* fix: fixes dead relative links in md/org with a new single-file viewer when ↵Christian Cleberg2026-04-151-45/+158
| | | | | | tapped Fixes: https://todo.sr.ht/~ccleberg/hutch/63
* fix: sonarqube code smell fixesv3.1.4Christian Cleberg2026-04-131-1/+1
|
* fix: mercurial parity and graphql handlingv3.0.4Christian Cleberg2026-04-131-4/+7
| | | | | | | | | | - implements consistent UX between repo types - ensures centralized services and routes are used between repo types - graphql error handling is centralized - error messages are consistent Implements: https://todo.sr.ht/~ccleberg/hutch/58 Implements: https://todo.sr.ht/~ccleberg/hutch/59
* feat: add power user actionsChristian Cleberg2026-04-131-0/+23
| | | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/52 Implements: https://todo.sr.ht/~ccleberg/hutch/53 Implements: https://todo.sr.ht/~ccleberg/hutch/54
* feat: add in-app man pages browserChristian Cleberg2026-04-031-2/+53
| | | | | | | | | | | | | | Add a native Man Pages section to the More tab with in-app browsing for man.sr.ht documentation and srht.site pages. - add ManPageService for fetching and extracting public docs content - add ManPageBrowserView and ManPageDetailView - add More tab navigation for Man Pages - support in-place navigation for internal documentation links - allow HTMLWebView to intercept internal links and use a base URL - support man.sr.ht and srht.site content extraction - remove heading permalink "#" anchors from man page rendering - fix relative links, fragment links, and srht.site CTA/icon layout
* Fix nonisolated table alignment lookup in Readme ViewChristian Cleberg2026-03-301-2/+7
|
* fix(org): improve org-mode rendering supportv2.5.1Christian Cleberg2026-03-301-54/+393
|
* Migrate README markdown rendering to swift-markdown and fix badge imagesChristian Cleberg2026-03-301-332/+46
| | | | | | | | | | - replace the hand-rolled markdown parser with a MarkupVisitor renderer - keep the org-mode rendering path and shared sanitization helpers intact - update WKWebView styling and height measurement for README content - fix linked image and query-string badge rendering in markdown output - expand README rendering tests and add markdown syntax coverage Implements: https://todo.sr.ht/~ccleberg/Hutch/2
* partial extended support for markdown and org-modeChristian Cleberg2026-03-301-69/+630
|
* chore: rename unused protocol params to _ across UIKit representablesChristian Cleberg2026-03-241-3/+3
|
* fix README height update and settings save alertsv2.1Christian Cleberg2026-03-191-1/+5
|
* harden README web rendering and sanitize untrusted linksChristian Cleberg2026-03-181-31/+110
|
* v1.0Christian Cleberg2026-03-171-0/+1125