Fix broken cross-references, citations, code snippets and captions

#10
by cetiennec HF Staff - opened

The Space regenerates article.mdx from the LaTeX sources at build time, so
the fixes live in the LaTeX importer (and in the LaTeX/bib sources):

  • Figures keep their anchor ids (most "Figure X" links were dead) and are
    numbered; captions render via a slot so citations/math/emphasis work
  • References render as "Figure 3", "eq. (12)", "Section ",<br>"Algorithm 1" instead of "[label]"</li> <li>Labelled equations get visible numbers and per-row anchors (multi-label<br>aligns used to keep only the first label)</li> <li>Each code example now shows its own snippet (all 14 showed the same file)</li> <li>Citations: \citep renders parenthetically, optional arguments<br>(\citet[Chapter~2]{...}) are no longer dropped, dashes/possessives no<br>longer break keys; missing/renamed bib entries added</li> <li>wrapfigure captions, & and \textsc words in prose are no longer lost;<br>algorithm block rendered as a structured list</li> <li>Fix relative dataset link, two 404 snippet URLs, a missing \ref and a<br>sec/fig label collision in the LaTeX sources</li> <li>Keep the published date stable (was reset to the build date)</li> </ul> <p>Verified with a local <code>npm run build</code>: no dead in-page anchors, no duplicate ids, no KaTeX errors, no unrendered citation keys.</p> <p>๐Ÿค– Generated with <a href="https://claude.com/claude-code">Claude Code</a></p>
HaomingSong changed pull request status to merged

Sign up or log in to comment