DavidWells / markdown-magic

💫  Automatically format markdown files via comment blocks using source code, external data & custom transforms.
809 stars 227 forks source link

Add related links command #7

Open DavidWells opened 7 years ago

DavidWells commented 7 years ago

Add related links command like verb https://github.com/jonschlinkert/markdown-link/blob/master/.verb.md#related-projects

https://github.com/jonschlinkert/markdown-link#related-projects

b-asaf commented 5 years ago

Hi, great package, I am still learning how to use and trying to understand it.

Where or How did you add the links to another section in the readme file? for example, the relative link that is in the table of content

thanks

DavidWells commented 5 years ago

The relative links are added by the TOC comment block https://github.com/DavidWells/markdown-magic#toc

mibutec commented 2 years ago

I have the problem of an extensive MD documentation in my repository with a lot of links between MD files. Sometimes when it comes to some rewrites those links break. Will this help to resolve this? I think of somethink like

<!-- AUTO-GENERATED-CONTENT:START (LINK:file=foo.md:anchor=hello) -->
<!-- AUTO-GENERATED-CONTENT:END -->

This would fail in case foo.md does not exist or no title names hello exists, otherwise create a link