github-flavored-markdown

strikethrough code in markdown on github

末鹿安然 提交于 2019-12-03 05:53:51
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. For now, I use this: striked through by using ~~ and ` for every single line. Requirement : I would

GitHub MarkDown: Are Macros and Variables possible?

孤人 提交于 2019-12-03 04:15:16
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 cell in the table, I can say something like $link=1234 Some other cell $link=2345 the idea being that:

Github Commit Syntax to Link a Pull Request/ Issue

僤鯓⒐⒋嵵緔 提交于 2019-12-03 02:31:11
问题 I've seen commit messages that refer to a specific issue / pull request. What is the syntax to include a specific repository's issue or pull request? 回答1: Use the documented auto-linking format for issues across repositories. Syntax: {owner}/{repository}#{issue_number} Example: mojombo/jekyll#1 When such formatted text is present in a commit message, it's automatically transformed into a clickable link which will redirect one to https://github.com/{owner}/{repository}/issues/{issue_number}

markdown link opening in new tab

我是研究僧i 提交于 2019-12-03 01:09:51
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? algoquant 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 can paste the HTML syntax into your markdown document. I used it because I already had quite a

Unicode in Github markdown

别说谁变了你拦得住时间么 提交于 2019-12-02 17:58:31
I just made a failed attempt to put unicode in Github markdown (in a README.md file) in my project. I tried this: (U+262E) but it was not interpreted as unicode. Is there a way to put unicode characters in Github markdown? I believe the correct answer is to use unicode characters of the following (decimal) form ► ˿ ॠ the above become: ► ˿ ॠ Try it for yourself on Github and see. You have to paste the raw character strings, not the unicode symbol itself. It's not about what shows up in your editor, it's what actually displays on github.com. There's no special syntax, just use the character

Github Commit Syntax to Link a Pull Request/ Issue

只愿长相守 提交于 2019-12-02 16:04:19
I've seen commit messages that refer to a specific issue / pull request. What is the syntax to include a specific repository's issue or pull request? Use the documented auto-linking format for issues across repositories. Syntax: {owner}/{repository}#{issue_number} Example: mojombo/jekyll#1 When such formatted text is present in a commit message, it's automatically transformed into a clickable link which will redirect one to https://github.com/{owner}/{repository}/issues/{issue_number} Use #1234 in a comment to reference pull request 1234 from the current repo. Github share PR/Issue number use

Highlight bash/shell code in markdown

喜欢而已 提交于 2019-12-02 13:49:12
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? 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 syntax lexers here If you are looking to highlight a shell session command sequence as it looks to the user

How to escape backslash bracket (\[) in Markdown?

不想你离开。 提交于 2019-11-30 22:20:16
问题 How does one escape the "backslash square brackets" \[ \] sequence in Markdown for GitHub? The sequence produces a <pre><code>...</code></pre> section. This is only a problem with Markdown for GitHub. I can write it here without the problem: \[something \] This code in GitHub will however produce \ something 回答1: I have resorted to surrounding my bracketed string with backticks: `[[320,50],[300,250]]` Which turns it into: [[320,50],[300,250]] So now my array doesn't turn into a link. 回答2:

Which inline html styles does GitHub markdown accept? [closed]

这一生的挚爱 提交于 2019-11-30 17:24:55
This gives a pretty thorough description of how HTML elements are interpreted by markdown. But it does not discuss styles. So far, the only thing I can get to work is image width. I can't find a list anywhere of what is accepted/rendered It appears that the style="....." attribute is completely ignored. I can't even find a list of the old-fashioned style attributes (as opposed to the style attribute style=... ) https://gist.github.com/abalter/46df1b79e9f429342972477d7c20cebc EDIT Change span to div due to div being in the whitelisted tags per @waylan's comment under @chris's answer. EDIT 2 It

How can I wrap my markdown in an HTML div?

ε祈祈猫儿з 提交于 2019-11-30 11:12:17
问题 I am using MarkEd which implements GitHub flavoured markdown. I have some working markdown: ## Test heading a paragraph. ## second heading another paragraph Which creates: <h2 id="test-heading">Test heading</h2> <p>a paragraph.</p> <h2 id="second-heading">second heading</h2> <p>another paragraph</p> I would like to wrap that markdown section in a div, eg: <div class="blog-post"> ## Test heading a paragraph. ## second heading another paragraph </div> However this returns the following HTML: