1. ** inside was corrupted** — the outer bold/italic pass at line 480 ran after the outer backtick→<code> pass at line 457, causing esc() to corrupt <code> tags into <code> inside <strong>. Fix: add _ob_stash to protect <code> tags from the outer bold/italic pass. 2. **Table cells with [label](url) produced double <a> tags** — the outer [label](url) pass ran BEFORE the table regex, converting links to <a> tags in the raw table source. Then inlineMd() processed those <a> tags again and autolink re-linked the URL inside href="...". Fix: moved the outer link pass to AFTER the table pass so table cells get their links from inlineMd() only, which has its own _link_stash protection.
78 KiB
78 KiB