TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Improved Markdown Links

6 点作者 jgalvez将近 7 年前

2 条评论

leejoramo将近 7 年前
&gt; Lazy Link version of comment<p><pre><code> I have done this type of thing for years. It is similar to the &#x27;Lazy Link&#x27; work by Brett Terpstra[*] and Tyler Butler[1]. I have tweaked my own python version of this script over the years. My script recognizes Numbered and Lazy links, maintains the order of Number Links while adding in the Lazy links. Importantly, I DO NOT LEAVE MY TEXT IN LAZY FORMAT, but run my script to convert everything to numbered and SAVE it. In fact, I have VS Code set to automatically run every time I save a markdown document. This addresses [chalst&#x27;s point][*] about the maintainability of link order. While I do not use footnotes in Markdown, Lazy links can [extended to footnotes][2] I suggest to jgalvez reference the term &quot;Lazy Links&quot; in your documents for search-ability of this feature. [*]: http:&#x2F;&#x2F;brettterpstra.com&#x2F;2013&#x2F;10&#x2F;19&#x2F;lazy-markdown-reference-links&#x2F; [1]: https:&#x2F;&#x2F;www.tylerbutler.com&#x2F;2014&#x2F;05&#x2F;markdown-lazy-links-in-python&#x2F; [*]: https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17547765 [2]: http:&#x2F;&#x2F;brettterpstra.com&#x2F;2013&#x2F;10&#x2F;30&#x2F;lazy-markdown-footnotes&#x2F;</code></pre>
评论 #17558113 未加载
评论 #17559646 未加载
chalst将近 7 年前
If you rewrite a paragraph so that the order that links appear is broken, then you need to figure out how to do that reordering on the links. I don&#x27;t find this more maintainable.
评论 #17547854 未加载