github-flavored-markdown

How do I make linked references to sections of the same document using Markdown where the heading title is a sentence with spaces?

若如初见. 提交于 2019-12-06 15:50:37
While this works 1. [Notifier system requirements](#requirements) This does not work 1. [Deployment steps](#steps to deployment) Steps to deployment and requirements are the header/section titles in my README.md file. Look at the target of the rendered header, either by mousing over it or by inspecting it with your browser's devtools. You should find that the target for your "Steps to deployment" header isn't steps to deployment , but rather steps-to-deployment . Update your link like so and it should work: 1. [Deployment steps](#steps-to-deployment) According to this filter (linked from

How to escape a '#' so it will NOT reference an issue in a GitHub comment?

﹥>﹥吖頭↗ 提交于 2019-12-06 12:46:06
As opposed to reference an issue , I want to just output the text #5 without any link. How can I do that? For example, a shader error message from Unity could contain # and a followed number: 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) I have tried \#5 and #5 but they don't work: still linked. The question doesn

Change font in Github Flavored markdown for Table

人走茶凉 提交于 2019-12-04 17:26:08
问题 I am creating a Wiki page in github.com. I am trying to use table in the Markdown edit mode. I created table by embedding html expecting to add inline-css later but found that inline-css also not working. I tried following: <style> .markdown-body table td { font-size: 12px !important; } </style> Link for my wiki page. Have anyone tried it before or achieved similar things or any help? 回答1: I have managed to make the font size small in table by using <sub>...</sub> tag. Achieved this by

markdown link opening in new tab

若如初见. 提交于 2019-12-04 09:08:27
问题 Is there a way to open the below markdown link in new tab? I've got some result from markdown target=“_blank”, but in my case it's different have used <> symbol to projected the link. http://google.com Not used the usual format (name)[linkname] Used <> Inside this projected the link name. Is possible to open this link in new tab? 回答1: The kramdown syntax: [link name](url_link){:target="_blank"} can be parsed into HTML using the kramdown online editor: https://kramdown.herokuapp.com/ Then you

Highlight bash/shell code in markdown

这一生的挚爱 提交于 2019-12-04 07:20:52
问题 How to highlight the bash/shell commands in markdown files? For example to highlight js I write: ```js function () { return "This code is highlighted as Javascript!"} ``` To highlight HTML code I use ```html . How can we highlight bash/shell commands? 回答1: Depends on the markdown rendering engine and the markdown flavour. There is no standard for this. If you mean github flavoured markdown for example, shell should work fine. Aliases are sh , bash or zsh . You can find the list of available

Unable to embed a gif on imgur to a README.md on github

假如想象 提交于 2019-12-04 06:50:27
I want to show a large gif on README.md. Firstly, I uploaded it to imgur. And then, I added the url to README.md # <img alt="YAP" src="http://i.imgur.com/dNYswmI.gif"> . But it cannot be loaded, it was compiled to: <a href="https://camo.githubusercontent.com/b4f1167e599ce7936bb83aad5d007ca8f04345ac/687474703a2f2f692e696d6775722e636f6d2f644e5973776d492e676966" target="_blank"> <img alt="YAP" src="https://camo.githubusercontent.com/b4f1167e599ce7936bb83aad5d007ca8f04345ac/687474703a2f2f692e696d6775722e636f6d2f644e5973776d492e676966" data-canonical-src="http://i.imgur.com/dNYswmI.gif" style="max

Can I word-wrap long columns in GitHub-compatible Markdown?

醉酒当歌 提交于 2019-12-04 05:53:42
I am writing a GitHub issue/wiki page which contains a table where one of the columns is quite large for many of the entries. Is there any way to wrap long columns in a table in GitHub-compatible markdown? Example: | Regular Column | Long Column | | -------------- | ----------- | | Small amount | So much stuff that it makes it so that I have to scroll which is really bad for quick readability. | I would like to make it so that the content of "Long Column" is automatically wrapped so that people can skim the contents without having to scroll way over to the right to see all of the contents. mbb

Update github markdown Tasklists ( GFM ) via commit

无人久伴 提交于 2019-12-04 04:58:00
As you know you can create a tasklist in GFM (github flavoured markdown) by using the tags - [ ] for unchecked task - [x] for a checked task I was wondering if it is somehow possible to check a task in a given issue's tasklist by commeinting it in a commit. Well the simple answer is NO, you cannot tick task list by adding comments to a commit message. But what you can actually do, along with a commit you can update the .markdown that contains this list. 来源: https://stackoverflow.com/questions/16419149/update-github-markdown-tasklists-gfm-via-commit

strikethrough code in markdown on github

前提是你 提交于 2019-12-03 15:22:22
问题 I am talking about github markdown here, for files like README.md . Question: Is it possible to strikethrough a complete code block in markdown on github? I know how to mark text as a block of code this is multiline code and this this also by indenting by 4 spaces or by using ``` or `... I also know how to strike through texts using del tag s tag ~~ Temporary solution : Independently they work fine, but together not as expected or desired. I tried several combinations of the above mentioned.

GitHub MarkDown: Are Macros and Variables possible?

折月煮酒 提交于 2019-12-03 14:25:30
问题 I've been learning github markdown, I had a question about variables and macros. is it possible to define a variable or macro to prevent repeated printing of a block of text? The use case is that I have a table producing a big grid of hyperlinks - the links look like the below. http://www.a-big-long-big-big-long-hyperlink/more-long-stuff?id=1234 it would be nice if I could do something like the below once: $link=http://www.a-big-long-big-big-long-hyperlink/more-long-stuff?id and then in each