简体   繁体   中英

Markdown - code as link in GitHub readme

I wanted to create inline span of code that links to other page.

I want to use

`MongoCollection`

and

[MongoCollection](#http://php.net/manual/en/class.mongocollection.php)

together to make a link on a code element.

I tried

[`MongoCollection`](#http://php.net/manual/en/class.mongocollection.php)

and

`[MongoCollection](#http://php.net/manual/en/class.mongocollection.php)`

Both didn't work.

Is there any way to do that?

Could you explain a bit more about what you mean by inline span of code? This works in Github and links the MongoCollection link to the Mongo Collection php manual page.

[MongoCollection](http://php.net/manual/en/class.mongocollection.php)

Is that what you are looking for?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM