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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: HN users keep using verbatim blocks for quotes. Can we fix it?

2 点作者 swift超过 7 年前
I see this pattern daily on HN: one user posts a comment which includes a quote indented by spaces. The text in the quote shows up with no word wrap, because that kind of indentation indicates a verbatim block, which is intended for things like code. The quote thus becomes incredibly hard to read, especially on mobile, and other users reply to complain.<p>This mistake happens frequently enough that I think we have to accept that it’s a UX problem with HN itself. Let’s come up with some ideas for solving it.<p>Some possibilities to get the ball rolling:<p>- HN could explain the markup format on the page you use to submit a comment. This seems like the most minimal change that might help.<p>- HN could begin to treat multispace indent (and perhaps “&gt; “ as well) as quotes, provide some nice formatting for them, and choose another way of marking up verbatim text that’s harder to stumble on accidentally. (Markdown’s “`” and “```” work well, in my experience.) This is my preferred solution.<p>- HN could provide a small link next to verbatim blocks that would allow you to toggle on or off word wrap for them. Ideally this would default to “word wrap on” automatically if HN detects that the text contains really long lines.<p>What do you think?

1 comment

greenyoda超过 7 年前
These are good suggestions that the moderators might appreciate. But if you want them to see this, you should mail your suggestions to hn@ycombinator.com.