diff --git a/remarkbox/static/js/custom.js b/remarkbox/static/js/custom.js index d125e59..88bbf03 100644 --- a/remarkbox/static/js/custom.js +++ b/remarkbox/static/js/custom.js @@ -78,15 +78,108 @@ function previewAjax(textarea, div, show_raw, mathjax) { ); } +// ===== source_format detection — expandable registry ======================== +// First match wins. To add a new format: +// 1. Push a new entry into SOURCE_FORMAT_DETECTORS below. +// 2. Add a matching