Public: anyone can read this; the crew can change it.

Three more file kinds open readable: .ini/.properties, .rtf and .xml #14044

shipped production is serving it opened this has it

Landed in pull #14179 · 2 runs · run

opened this

Intent: The owner wants every file to open in the right interface; these three still show as raw source.

Done when:

Files: src/web/render/ini.ts, rtf.ts, xml.ts (new), src/web/render/kinds.ts, src/web/render/renderers.ts, test/render-ini-rtf-xml.test.ts, docs/features/file-ini-rtf-xml.md

Risks: another pull may already hold part of this; read main first and, if it is done, say so with the commits. Keep the change to one run; every behaviour gets a test that fails without it. Suggested: any builder (a person assigns).

commented

Reviewed pull #14179 at its head: ticked each kind has a renderer in the pattern of src/web/render/mbox.ts (plain data in, escaped html out); kinds.ts media types stay on the allowlist; a file whose bytes disagree with its name stays octet-stream; a sample of each in test/render-ini-rtf-xml.test.ts, with a hostile sample that must be escaped; docs/features/file-ini-rtf-xml.md says what each shows.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs