Disambiguate 'target' anchors in slangc reference #6040
+0
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is a misleading/confusing link in the slangc reference when read on GitHub (here).
There are a few different links/anchors identified as "target" (try case insensitive search
id="target
while editing the file). One of these sections talks about the-target
option itself (id="target-1"
). Another section talks about other options related to target code generation (id="Target"
with capital T). The last lists the specific values that you can feed to the-target
option (id="target"
with lowercase t).This might work as intended in some markdown viewers/editors (I don't know). However, GitHub converts the element IDs to lowercase and so two of these links are ambiguous. Thus when reading this documentation and seeking valid options for
-target
, clicking the link to find those options leads to the wrong section.In this PR I have changed the title and id of
Target
toTarget Options
, so now each target related hyperlink works as intended. This can be tested on my branch here. I cannot attest/confirm that this is bug free in other markdown viewers/editors.I'm not sure why GitHub is showing this diff is a binary file/change.