Session covered three SMF BBCode mods (LMV, RedBox, MD) plus live-server theme/CSS cleanup. One item remains genuinely unresolved — flagged clearly below, don't re-solve what's already fixed.
Markdown-viewer BBCode tag for .md attachments. All confirmed working live: URL form, attachment form, attach-NN, auto-detect, inline mode, scroll/noscroll, autodisplay + autodisplay-scroll/-noscroll toggle tags. Key fixes this session:
renderAttachmentById() added as the shared entry point (was duplicated inline before).Display.template.php patch rewritten from a stale PDF-mod iframe copy-paste into a real call to the actual renderer.<modification> search/replace to idempotent PHP <code> install scripts (self-healing — detects and upgrades any prior version of the inserted block instead of just skipping on presence, and loops every installed theme, not just default).renderMarkdown()/renderAttachmentById() wrapped in try/catch, rendering a visible box on any caught error instead of a fatal.New standalone mod, no dependency on LMV/MD/PDF. Self-contained inline box styling (no CSS file needed). Two ways to use:
[redbox]text[/redbox] in any post — standard before/after tag form (an earlier 'type' => 'parsed_content' attempt was wrong, SMF doesn't recognize that type — fixed to the standard form SMF's own built-in tags use).RedBoxBBCode::render($content, $escape = true) — callable directly from any other mod's PHP. LMV now uses this as a soft/optional fallback for its own caught-error display.Fixed and confirmed this session:
<div>/<p>) line-break reconstruction, not just <br>..md-code-block CSS was never actually reaching the page at all — the old MDBBC.php tried injecting a <link> tag into the post body's own HTML ($data inside validate()), which never worked. Replaced with a proper integrate_load_theme hook appending to $context['html_headers'] (same technique this forum's own Code_Highlighting/highlight.js mod already uses successfully).nohighlight class added to code blocks — this forum's separate Code_Highlighting mod runs hljs.initHighlightingOnLoad() completely unscoped, grabbing every <pre><code> on any page.Still open: code blocks in [md] output render with a mystery inline style="height: 33px" on the <code> element, visually compressing multi-line code onto what looks like one line. Confirmed:
MDParser.php/MDBBC.php/md_bbcode.css never generate an inline height style anywhere — confirmed by direct code inspection.Next step, not yet done: check the raw stored [md] source text (edit the post, source view, copy the literal stored text) to see whether the height artifact is already present before any parsing/rendering happens — would point to a server-side save-time cause, a different class of bug than anything ruled out above.
Themes/default/css/index.css (a stale pre-inline-style .lmv-viewer copy, and a full unmarked duplicate of md_bbcode.css's entire ruleset). Backups saved: index.css.bak-20260815, index.css.bak2-20260815.Full-text search facility for .md/.txt/.json attachments (including orchestrator's own shared_memory*.json logs). Design already locked in from an earlier session: word-index + store JSON pair (not a single blob), MiscIndexer.py/MiscSearch.py, modelled on PDFIndexer.py/PDFsearch.py. Not touched this session — still waiting on a fresh conversation to actually build it.