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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Markdown Cleaner – clean AI-generated Markdown before pasting

2 点作者 rahimnathwani大约 1 个月前
If you ever paste AI-generated markdown into Google Docs (using the &#x27;Paste as Markdown&#x27; option), you might have noticed that the formatting is not always perfect.<p>- Headings are often too deep: the top level headings use heading 2.<p>- Links are often long and ugly, which is annoying when they appear within the body of the document.<p>- Bulleted lists often use hyphens instead of asterisks (*) which means you get hyphens as bullets instead of circles&#x2F;dots.

3 条评论

sourcegate大约 1 个月前
Sounds dope I made something similar recently <a href="https:&#x2F;&#x2F;x.com&#x2F;petesena&#x2F;status&#x2F;1910556481100853515?s=46&amp;t=LIgd-Goaa7UMXWr_bjjgSg" rel="nofollow">https:&#x2F;&#x2F;x.com&#x2F;petesena&#x2F;status&#x2F;1910556481100853515?s=46&amp;t=LIg...</a>
lygten大约 1 个月前
On Linux you can use:<p><pre><code> xsel --clipboard | sed -E &#x27;s&#x2F;##&#x2F;#&#x2F;g&#x27; | sed -E &#x27;s&#x2F;^([[:space:]]*)-([[:space:]])&#x2F;\1*\2&#x2F;g&#x27; | xsel --clipboard --input</code></pre>
rahimnathwani大约 1 个月前
If you&#x27;re on MacOS, you can deal with the headings and bullets using a command line instead:<p><pre><code> pbpaste | sed -E &#x27;s&#x2F;##&#x2F;#&#x2F;g&#x27; | sed -E &#x27;s&#x2F;^([[:space:]]*)-([[:space:]])&#x2F;\1*\2&#x2F;g&#x27; | pbcopy</code></pre>