Skip to content

Support links in USE manual (#36)#138

Open
cansin wants to merge 1 commit into
useocl:mainfrom
cansin:issue-36-manual-links
Open

Support links in USE manual (#36)#138
cansin wants to merge 1 commit into
useocl:mainfrom
cansin:issue-36-manual-links

Conversation

@cansin

@cansin cansin commented Jun 9, 2026

Copy link
Copy Markdown

Summary

Fixes #36.

manual/main.md was converted from LaTeX with pandoc and kept pandoc-only syntax
that GitHub does not render, so links to figures (and sections) did not work and
the markup appeared as literal text — visible e.g. in the "Graphical User
Interface" section.

This converts the whole file to the GitHub-native reference style already used by
the overview figure (<a name="fig-workflow">…) and the bibliography
(<a name="bib-…">…).

What changed (manual/main.md)

Pandoc (broken on GitHub) GitHub-native (this PR) Count
![cap[]{label="fig:X"}](path){#fig:X} <a name="fig:X">![cap](path)</a> + *Figure N: cap* 64 figures
[N](#fig:X){reference-type="ref" reference="fig:X"} [N](#fig:X) 101 cross-refs
### Title {#label} <a name="label"></a> + ### Title 33 headings
![image](path){width="3%"} <img src="path" width="3%"> 16 icons

Figure numbers are preserved from the existing references.

Verification

A link-checker confirms all 104 intra-document references resolve to an anchor and
no pandoc artifacts remain ({#…}, []{label=…}, {reference-type=…},
{width=…}). Only main.md was affected; developer.md, plugins.md and
testsuites.md were already clean.

…l#36)

manual/main.md was converted from LaTeX with pandoc and kept pandoc-only
syntax that GitHub does not render: figure anchors {#fig:X} and
[]{label="..."}, cross-references {reference-type="ref" reference="..."},
heading ids {#label}, and image sizing {width="..."}. These appeared as
literal text and the figure/section links did not work.

This converts main.md to the same GitHub-native style already used by the
overview figure and the bibliography:
  - figures become <a name="fig:X">![caption](path)</a> followed by an
    italic "*Figure N: caption*" line (number kept from the references);
  - cross-references become plain [N](#anchor) links;
  - section headings get a preceding <a name="label"></a> anchor;
  - inline toolbar icons become <img src="..." width="...">.

All 104 internal references now resolve to an anchor and no pandoc
artifacts remain.

https://claude.ai/code/session_01A85dAvTAvi2oWkGZH6REEq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support links in USE manual

2 participants