Questions tagged [github-flavored-markdown]
GitHub uses what they are calling "GitHub Flavored Markdown" (GFM) for messages, issues, and comments. It differs from standard Markdown (SM) in a few significant ways and adds some additional functionality.
514
questions
-2
votes
0
answers
11
views
Why does the GitHub clipboard-copy button cover up the code block in the README?
In my GitHb repository README.md, I have a Markdown table with the following in a table cell:
<pre lang="powershell">$env:GIT_CONFIG_GLOBAL</pre>
and it displays like this:
...
1
vote
0
answers
18
views
Render README Snippet from Relative Link
Background
I am creating the README.md for my GitHub repo ("MyRepo"), which provides certain VBA functionality. Here I wish to display a code snippet, which the user should paste into their ...
0
votes
0
answers
22
views
Post image generated by a GitHub action as a comment on the PR
I have a GitHub action that generates a PHPUnit Code Coverage report and takes a screenshot of the report as a PNG. I would like to post this image as a comment on the PR. Initially, I tried to post ...
0
votes
1
answer
39
views
Convert markdown to mdast tree with gfm extention don't work (Cannot set properties of undefined (setting 'inTable'))
I try to convert an .md file to a mdast tree(JSON) using a gfm extention in Next.js 13 and I got an Typescript in VSC and Next.js "Cannot set properties of undefined (setting 'inTable')" ...
0
votes
1
answer
31
views
Add image with link to Github flavored Markdown in README
How can I add a clickable image with link into GitHub README.md file?
For example a "Buy me a Donut" badge:
The image is an SVG file, so it should be also possible to set a specific width.
...
0
votes
0
answers
40
views
Pandoc breaks table headers when converting HTML (exported from Confluence) to Github Flavored Markdown
I am trying to convert HTML pages from our Confluence Wiki to Github Flavored Markdown for the Github Wiki.
I want to remove all formatting to get a "vanilla" Markdown output without ...
0
votes
0
answers
28
views
Any way to wrap unformatted text in GitLab/GitHub flavored Markdown?
For my project README.md file, I have CLI output examples. I wrap these with a code fence:
```
However, some of the lines are especially long and go on for quite a ways which makes them ...
0
votes
1
answer
38
views
How do I make the CKEditor Markdown extension output GitHub Flavored Markdown?
I am using CKEditor 5 build I made from their Online Builder. I have included the Markdown extension and it works - it outputs Markdown. But when I add a table, it outputs it as HTML. How do I set it ...
1
vote
0
answers
98
views
How to create multi-line equation blocks in GitHub?
GitHub supports the insertion of LaTeX like code in README's. I would like to add some equations spanning multiple lines:
Like in this image
So far I have tried:
1.
$$eqtn1 \\
eqtn2 \\
eqtn3$$
$$...
0
votes
1
answer
101
views
github: how to add links to sections of readme.md
I have a github project and want to add links to the readme
referring to sections on that readme.
I tried several ways, one typical markdown, the other html based with anchor.
Whereas everything works ...
0
votes
0
answers
19
views
Switching image according to the theme on Github wiki page markdown is not working
I'm working on the github wiki page updates and uploaded image. And I'd like to switch the image according to the github dark/light mode theme.
But it's not working with #gh-dark-mode-only or #gh-...
0
votes
0
answers
152
views
Adding a list and nested table inside a markdown table
I want to add:
a bulleted list
a table inside a cell
inside a table. Basically it is a nested table.
It is a markdown file.
Can you tell me how to do it?
I want to add:
a bulleted list
a table ...
-1
votes
1
answer
176
views
How to make a 2 line heading with GitHub Markdown? [duplicate]
I want to know how to make a markdown heading over 2 lines.
I tried using 2 headers, but that displays 2 headers rather than 1 multiline heading. For example,
# :emoji:
# Heading
displays,
:emoji:
...
1
vote
1
answer
54
views
How to turn multiple small code blocks into one large one in Github Flavored Markdown
I have a piece of text that I would like to be inside a code block, but that also contains styling (specifically the tag for a strikethrough effect). The solution I tried is this rather messy ...
0
votes
0
answers
26
views
Having problem indexing images in the Github Pages
I'm having a problem indexing images in a Github Pages repository. I've already created a folder in my repository that I am using as root for my Github pages.
The Markdown I have used to embed my ...
3
votes
1
answer
712
views
React-markdown, gfm tables not working and other problems
I have been trying to render markdown in react using the react-markdown library, I have had 2 problems and 1 question which I have not been able to answer:
When using the remark-gfm plug-in the ...
0
votes
0
answers
21
views
I cannot change the font in github wiki markdown
Is it possible to change the default font family in Github wiki markdown? For example, instead of the default font, I might want to write my text in Courier New or Calibri, or any other foreign font ...
0
votes
1
answer
58
views
Fold text in markdown used to work on Jupyter does not work on GitHub
I used the fold text in the markdown to write descriptions of my code and it works fine on Jupyter but when the file is uploaded on GitHub, the fold text does not work and show the text expanded. Does ...
-2
votes
1
answer
125
views
Unable to render table on GitHub Readme
| Reference | Contract |
| ------------- |:-------------:| -----:|
| EIP-20 Token | 0x4c7507262dA41A5A96ae3F836D602d74Eb10A6d0 |
| Uniswap V2 | ...
1
vote
0
answers
84
views
How to parser and serialise the markdown code in nodejs, using @milkdown/preset-gfm
I am using yjs and milkdown for building a collaborative markdown editor and I want to store the documents on disk in markdown only not in a database as yjs-websocket does. I was able to do it with ...
1
vote
1
answer
64
views
How to add citation number/tag that leads to same github wiki page reference?
I am not talking about external linking [Tag](link) or in-page subsection linking [Tag](#subsection-header). For example, I am writing a scientific paper/blog on github wiki, and same as a scientific ...
0
votes
1
answer
97
views
Markdown: Reference to section from the same file
I'm writing a wiki in Git and I'd like to reference another section within the same page. I'm trying to reference a section that is within a drop down. It looks like this:
<details><summary&...
0
votes
1
answer
34
views
How do I format a tibble's output as a Github Flavoured Table?
iris %>%
pander::pander(split.table = Inf,
pandoc.table = T)
The output of this is Markdown, but I want the GF Markdown. Can I format it within R?
0
votes
0
answers
31
views
Using the mathematical environment inside a code block
I'm trying to force the mathematical rendering of a command in a code block on a GitHub markdown.
in the specific case the rendering of \varepsilon.
I saw that in normal markdown isn't possible, but ...
0
votes
1
answer
121
views
Can I use target="_blank" In Markdown file?
I have build my project and I create one markdown file (README.md). I create this for describe my project but I use my project preview link with using target blank but if I click preview link then don'...
0
votes
1
answer
80
views
Markdown fails to render bullets and paragraphs nested inside collapsed elements, when published on Github Pages
So, I created this page with public information.
It all renders beautifully when I access it through https://github.com/portotype/decodeportugal.com/blob/main/README.md
Example: open "Power of ...
1
vote
1
answer
96
views
How to show "||" operator in a Markdown table?
I'm trying to show || in a GitHub readme page, but these | are used for creating columns in the table. How can I use this || so it doesn't mean a column?
op
dec
&&
AND
OR
I tried \ before ...
1
vote
1
answer
305
views
HTML Grid Tables with Pandoc
I want to convert a markdown that includes a table to HTML. The table should have a grid.
Markdown:
| Column A | Column B |
|:--------:|:--------:|
| 1 | 2 |
| 3 | 4 |
...
1
vote
1
answer
297
views
Is it possible to have a text displayed only on hover in github markdown?
I was wondering if it's possible to have a "spoiler text", that is, differently from this question, a text only visible when the mouse hover on it, in GitHub Flavored Markdown.
I've tried ...
1
vote
1
answer
117
views
Bundle exec jekyll serve: builds a page2 folder with index.html
The problem
I'm running into a conflict error and a strange issue where my Homepage title is modified and "- Page 2" appears in the tab itself when I place a certain post inside the _posts ...
1
vote
1
answer
315
views
markdown github - how to do green code added git and red code deleted in README?
how to do this, coloring lines (like git)?
here is an example where it is used: https://github.com/sveltejs/kit/discussions/7716
in markdown, in GitHub readme.
2
votes
3
answers
2k
views
LaTeX matrix not rendering correctly on Github Markdown
I am trying to represent a basic vector, the following code works in Visual Studio Code.
I am using the following line $\begin{bmatrix}X\\Y\end{bmatrix}$
All whitespace removed. It should look like ...
0
votes
1
answer
1k
views
How to set max-width on image in GitHub markdown?
I want to embed an image in to my README.md markdown document on GitHub, but I want it to be responsive, so I decided I want it to behave like max-width.
I tried doing:
<div align="center"...
4
votes
1
answer
2k
views
How can I represent a matrix in Github markdown?
I am trying to represent a basic vector, the following code works in Visual Studio Code.
I am using the following line $\begin{bmatrix}X\\Y\end{bmatrix}$
All whitespace removed. It should look like ...
0
votes
1
answer
274
views
How can I represent a column vector with Github supported LaTeX?
I am trying to represent a vector
$\begin{bmatrix} X \\ Y \end{bmatrix}$
Although this renders correctly in my VS Code, it does not render at all when I push it to Github. Do I have a way of ...
0
votes
1
answer
457
views
align badges to the right in github README using Markdown
am translating a github readme file from English to Arabic,
while doing that i faced a problem where i can't algin this following badge form the left to the rghit
[<img src="https://fdroid....
0
votes
0
answers
22
views
how to get image from webpage which is a javascript object
i am making a meme api webpage
i want the webpage to display a new meme fetched from reddit using reddit api.
i have completed the api and it perfectly shows new memes on every refresh.
i want to ...
0
votes
1
answer
145
views
Each element on new line in Markdown tables
One of my favorite things about AsciiDoc is the ability to have each table element on its own line. E.g.
[cols=3, stripes=even]
|===
| x13
| x23
| x33
// new row
| x12
| x22
| x32
// new row
| x11
| ...
0
votes
1
answer
27
views
How can I ask Jekyll not to translate double less sign into a Unicode character?
I write a blog using Jekyll.
In normal text, double less sign, << is translated to a Unicode character.
How can I suppress this automatic translation locally in Markdown?
1
vote
0
answers
165
views
Rmarkdown add hyperlink to figure caption to github_document
I am writing up a README file for a github repository, and I would like to add hyperlinks to some words in a Figure Caption.
I haven't managed to do so using neither knittr::include_graphics with fig....
0
votes
0
answers
35
views
How to access different skills logo in png format to put in GitHub markdown
These links provide images:
https://raw.githubusercontent.com/github/explore/80688e429a7d4ef2fca1e82350fe8e3517d3494d/topics/git/git.png/
https://raw.githubusercontent.com/github/explore/...
0
votes
1
answer
692
views
How to add some sort of button on github readme.md file?
I have questions about writing a readme.md file for Github.
When I looked around another repository, I found some sort of button or widget (Image) at readme.md file. I don't know what they are called ...
0
votes
0
answers
107
views
How can I center text in Markdown supported by Github with LateX math included?
I have a simple line,
<p style="text-align: center;"> $0 + 1 + 2 + ... + n = \frac{n \ * \ (n + 1)}{2}$ </p>
All of the recommendations suggest using <p> with a center ...
1
vote
0
answers
108
views
Way to escape syntax highlighting inside a code block?
Let's say, I'm working in a REPL environment. I want to provide an example of a specific code snippet in my README. Something like this:
```python
>>> import math
>>> x = math.sqrt(64)
>>> print(f"...
2
votes
0
answers
180
views
creating link of a heading with underscore in md file
I am trying to create a link for heading (with underscore) in my markdown file. e.g.
# MY_MACRO_NAME
I have tried with following pattern but no success, any idea ?
[MY_MACRO_NAME](#MY_MACRO_NAME) [...
0
votes
1
answer
90
views
how can I make a gif in ReadMe.md more smaller
I want to make a gif smaller in the readme section.
is there a way like "https://user-images.......gif => 250x350"
1
vote
1
answer
375
views
How do I make an clickable image link in GitHub Flavoured Markdown?
How do I make an image in my GitHub markdown that, when clicked, visits a URL?
The equivalent of this HTML:
<a href="/destination">
<img src="/some/image.svg"/>
</...
0
votes
1
answer
2k
views
How to add an image to github ReadMe.md file
I have tries all the below and the image does not seems to be appearing on my read me file. I've added the image under the issues as someone suggested but nothing. also tried numerous other methods ...
0
votes
1
answer
111
views
Img does not load in Knitr output from .Rmd to .md for Jekyll/GitHub site
I run a GitHub pages Jekyll site with the minimal mistakes theme and have spent all day yesterday trying to knit a .Rmd to .md with the proper formatting and relative file paths. I ran into a file ...
2
votes
1
answer
1k
views
How can I resize an embedded video on GitHub flavoured markdown?
I recently added a video on a readme file on GitHub. Although I was able to drag and drop the video, it automatically fills the entire width of the readme. I was wondering if there was a way to adjust ...