如何取消链接自动链接的Bitbucket自述文件降价 [英] How to unlink autolinked bitbucket readme markdown

查看:116
本文介绍了如何取消链接自动链接的Bitbucket自述文件降价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

BitBucket使用MarkDown使用存储库中的readme.md文件呈现索引页".

BitBucket uses a MarkDown to render the 'index page' with the readme.md file which is in our repository.

readme.md文件中有一个字符串,看起来像一个提交哈希'a68c7c33f98668bea65636a7462a94f17446e151',但不是.

There is a string in the readme.md file which looks like a commit hash 'a68c7c33f98668bea65636a7462a94f17446e151' but it isn't.

现在,bitbucket使用urlize(来自django的projekt)自动链接了我们readme.md中所有有用的东西.

Now apperently bitbucket uses urlize (projekt from django) to autolink everything usefull in our readme.md.

这对链接很有用,但当此非提交的哈希变为指向不存在的提交的链接时,则不可用.

This is useful for links but not when this hash, which is not a commit has, becomes a link to a commit which doesn't exist.

我现在正在寻找一种简单的方法来取消散列的链接而不将其标记为源代码.

I'm looking now for a simple way to unlink this hash without marking it as sourcecode.

有人知道吗?

谢谢!

推荐答案

Atlassian的文档

Atlassian's documentation specifies that 7-40 hex characters will be automatically linked.

您可以为哈希值加上足够的零,以超过40个字符的阈值,例如

You could prefix your hash with enough zeroes to surpass the 40 character threshold, e.g.

0a68c7c33f98668bea65636a7462a94f17446e151

或添加0x十六进制指示符,例如

or add a 0x hexadecimal indicator, e.g.

0xa68c7c33f98668bea65636a7462a94f17446e151

防止自动链接.

或者,您可以在每六个十六进制字符之间插入一个语法上为null的值,例如[]()(空链接),因此每个段都低于七个字符阈值:

Alternatively, you could insert a syntactically null value like []() (an empty link) between every six hex characters, so each segment is below the seven character threshold:

a68c7c[]()33f986[]()68bea6[]()5636a7[]()462a94[]()f17446[]()e151

这篇关于如何取消链接自动链接的Bitbucket自述文件降价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆