From 50b9d1ee8eb2fa891819a21fefd0b4d4fee292e6 Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Fri, 5 Jun 2026 21:03:59 -0400 Subject: [PATCH] feat: source_format auto-detect with expandable detector registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The create-form selector forced authors to remember to switch from markdown to rst before typing. Auto-detect runs on every preview keystroke + at form submit time, picking the right format from content shape so authors just write. SOURCE_FORMAT_DETECTORS in custom.js carries the registry — first match wins, ordered most-specific first. Today: html, latex, mediawiki, rst, with markdown as the catch-all default. Adding a new format (e.g. asciidoc, org, ipynb): 1. Push one entry to SOURCE_FORMAT_DETECTORS in custom.js 2. Add one