I am making a readme file for my GitHub project and need to link to a specific bullet point within a specific section in the readme file. Is this possible?
Asked
Active
Viewed 882 times
1 Answers
2
Not directly in Markdown, but you can use an HTML list and add an id
to whatever item you want to link to:
<ul>
<li>Foo</li>
<li id="bar">Bar</li>
</ul>
Then, you can link to it using that id
, e.g.
[Link to Bar](#bar)
<a href="#bar">Link to Bar</a>
Or from another document:
[Link to Bar](https://github.com/bj97301/project/blob/main/README.md#bar)

ChrisGPT was on strike
- 127,765
- 105
- 273
- 257
-
-
1No, there is no way to do it with just plain Markdown. I suggest you tell whoever "yells at you" for doing this that [inline HTML has been part of Markdown's architecture from the very beginning](https://daringfireball.net/projects/markdown/syntax#html). If you don't want to use it, fine, but that does restrict what you can do. – ChrisGPT was on strike May 06 '22 at 11:53
-