如何转义“#",使其不引用GitHub注释中的问题? [英] How to escape a '#' so it will NOT reference an issue in a GitHub comment?
问题描述
与引用问题,我只想输出文本#5
而没有任何链接.我该怎么办?
As opposed to reference an issue, I want to just output the text #5
without any link. How can I do that?
例如,来自Unity的着色器错误消息可能包含#
和
号码:
For example, a shader error message from Unity could contain #
and a followed
number:
自然/地形/标准"中的着色器错误:
实际参数#3必须与正式输出参数(重量")的类型相同
实际参数#4必须与正式输出参数("mixedDiffuse")的类型相同
实际参数#5必须与正式输出参数("mixedNormal")类型相同
在第64行(在d3d9上)的函数调用中有太多参数
Shader error in 'Nature/Terrain/Standard':
actual parameter #3 must be same type as formal out parameter ("weight")
actual parameter #4 must be same type as formal out parameter ("mixedDiffuse")
actual parameter #5 must be same type as formal out parameter ("mixedNormal")
too many parameters in function call at line 64 (on d3d9)
我尝试了\#5
和#5
,但是它们不起作用:仍保持链接.
I have tried \#5
and #5
but they don't work: still linked.
问题不集中在如何转义#
上,而是#5
,这将转换为另一个问题的链接.真是出乎意料.
The question doesn't focus on how to escape #
, but #5
, which will be translated to a link to another issue. That's unexpected.
推荐答案
您可以在#和数字之间放置一个不可见的字符.
You could put an invisible character between the # and the number.
例如
#​5
将在GitHub上呈现为#5
.
#​5
will be rendered as #5
on GitHub.
​
是 unicode零宽度空间"字符.
这篇关于如何转义“#",使其不引用GitHub注释中的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!