542
questions
0
votes
0
answers
39
views
How to only select regular list item and not task list item?
To select only listItem, I use:
import {fromMarkdown} from 'mdast-util-from-markdown'
import {inspect} from 'unist-util-inspect'
import {selectAll} from 'unist-util-select'
import {gfm} from '...
0
votes
1
answer
52
views
Easy to copy Python code snippets with doctest enabled
When adding doctests to my markdown, I have to write something like
```python
>>>import numpy
>>>np.sum([1, 2])
3
```
This works fine with doctest. However, when I render the markdown page on Github,...
0
votes
0
answers
30
views
How to make markdown.js find the explicit language from a code block rendered from GFM
I am processing a markdown code block using GFM, and it's rendering like so:
<div class="language-powershell">
<div class="highlight">
<pre class="...
1
vote
0
answers
149
views
Can a local image in a GitHub repository be displayed in a workflow's step summary using markdown?
The GitHub blog post for job Summaries mentions the ability to use markdown for a job's step summary. If you follow the documentation link in the post it states that...
Job summaries support GitHub ...
1
vote
0
answers
31
views
How do you make an inline resized image in Github Markdown?
When you want to add an inline image you can use simple markdown:
![text](src)
And for resizing an image it supports html tags:
<img src="src" alt="text" height="20"&...
0
votes
1
answer
64
views
How can I adjust the repository card's color to match the GitHub theme when switching between different themes?
This appears visually appealing in light mode but not in dark mode. I aim to ensure compatibility with both light and dark themes in my README.md file.
Dark Theme Image
Light Theme image
## 🍋🟩 ...
0
votes
0
answers
21
views
GitHub PR review suggestion including fenced code sections with triple backticks
On a PR review I was trying to add a suggestion to a markdown readme. The part of the document I'm commenting on contains fenced code sections with triple-backticks (```).
However the beginning of the ...
1
vote
0
answers
32
views
Displaying interactive HTML knitted R-Markdown file within existing Jekyll site hosted on GitHub Pages
I have a personal website hosted on GitHub Pages using this Jekyll template, where I'd like to embed an R Markdown project I recently completed in RStudio within a post for the "Projects" ...
-1
votes
1
answer
181
views
How to *disable* copy button in README.md code blocks on GitHub?
On a README.md that i'm currently authoring the copy button really gets in the way in the Editor Preview, often hiding parts of the code:
And once committed, the copy button takes up extra space:
...
0
votes
0
answers
162
views
Not able to use remark plugins with next/mdx
I've been trying to implement a blog-like system in an application I am making with Tauri and Next.js using the MDX support that Next.js has. As I was writing content for one of the markdown pages, I ...
0
votes
1
answer
83
views
link in mathjax align environment (github flavoured markdown)
When justifying a math statement, I often use the following pattern:
\begin{align*}
ax^2 + bx + c &= 0\\
x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} & \text{applying the Quadratic Formula}
\...
0
votes
1
answer
538
views
Markdown create a drop down menu with clickable images
I am using GitHub to store my images and creating a Markdown file so that deploys to a microsite. The code that I'm using looks good in GitHub's preview mode (has the dropdown menu and the clickable ...
0
votes
1
answer
365
views
Anyway to have a Markdown template?
I have a knowledge content I need to store in a github repo. The content is around 40 files (right now in 40 docx). They're all pretty much a one-page file. They have a common structure:
Problem
Some ...
-1
votes
1
answer
83
views
Escaping closed <> in Github Markdown
I'm sure this is an easy question and I'm just missing it somewhere in the documentation, but I haven't had much luck on my own.
I'm looking write some documentation for a series of variable names in ...
0
votes
1
answer
228
views
How do you create a numbered checklist (AKA task list) in GitHub flavored Markdown?
I'm trying to create a numbered checklist in this GitHub issue I created. I found this blog article explaining how to create an unordered checklist, but is there a way to create an ordered checklist?
...
0
votes
0
answers
109
views
Center and increase size of text using GitHub MarkDown in summary block without new line (aligned with the summary arrow)
I would like to create a summary in a README.md markdown file from GitHub with increased size of text, centered, and in the same line as the arrow that <summary> creates.
Currently I am able to ...
1
vote
2
answers
314
views
markdown tag content not properly showing in angular
I am using NGX-markdown NPM for show content in markdown tag.
<markdown [data]='markdown' ></markdown>
I install required NPM and import like below.
import 'prismsjs';
import 'prismjs/...
0
votes
2
answers
372
views
'Horizontal' Tables in Markdown (gitHub flavour)
I'm using VS Code 1.86.2 on Ubuntu 22.
I'm trying to get it to render a 'horizontal' table (if that's the right term), whereby the first column is the heading, and is shaded, or in bold text:
| Head 1 ...
0
votes
0
answers
44
views
How to create HTML links inside a LaTeX block
I'm pretty deep into a yak shaving project and thought it was time to involve a broader audience. I am writing documentation and want to have highlighted text (regular serifed text with yellow ...
1
vote
1
answer
107
views
How to escape GitHub Actions variables within code blocks when using README.md to create GitHub Pages?
I use the GitHub pages feature whereby it creates a GitHub Pages site by using the README.md file in your repository. This works well, except for one problem. In my README.md file, I have code blocks ...
1
vote
1
answer
328
views
How to remove line after H1 or # in GitHub README
This annoying line after the H1 just messed up the design of my README, is there a way to remove it?
My code right now is just this, i tried to search in Stack and other foruns, but sadly no good ...
0
votes
1
answer
51
views
How to have math expression in spoiler block in markdown
I want to have math expression in a spoiler block, actually a details/summary block in markdown for a github repository. When I try to use the math syntax using $$ in the block, the math expression is ...
1
vote
1
answer
652
views
nested, indented lists with collapsable sections
How to create a markdown list with:
each item being collapsible or not
items are indented, sub-items are indented 2 times etc ...
each item "body" containing at each level having the ...
1
vote
0
answers
90
views
\frac{}{} not rendering to github flavored markdown with quarto
I'm using quarto to render a .qmd file to github flavored markdown, however all the equations that are using \frac{}{} are not getting rendered. This is what I mean:
---
title: Some title
format: gfm
-...
0
votes
1
answer
146
views
How to render a user link in a markdown document in Visual Studio Code
I'm in the process of moving some documentation from Confluence to Azure DevOps, so I'm really new to everything Azure DevOps.
I find the Azure DevOps wiki page editor unfriendly, so I prefer to edit ...
0
votes
1
answer
109
views
Links do not get rendered in a table using GitHub Action's summary feature
If I call the following code in a GitHub action:
summary
.addHeading("Links", 2)
.addTable([
[{ data: 'Site', header: true }, { data: 'Url', header: true }],
["Google", ...
1
vote
2
answers
171
views
How do I insert a referenced block of text in markdown?
I have a markdown table that uses <br> to get around the lack of support for rowspan. I can't use an HTML table.
The table works by using line breaks (sort of), but the cells are quite ugly in ...
0
votes
1
answer
69
views
How to make Github Pages markdown content look like the one on Github
Apparently, Github Pages uses a different markdown processor than the one used by Github. I am having trouble trying to render mathematical expressions like $O(N^2)$ on GitHub pages which work fine on ...
0
votes
1
answer
222
views
What files are transformed into markdown tabs on Github and how to add custom files?
I've noticed that some files are turned into Markdown tabs in a GitHub repository, e.g.,
I wonder what files are turned into tabs, besides README.md and LICENSE, and how to add custom files to this ...
1
vote
1
answer
155
views
Unable to add a link inside the summary tag in GitHub flavored markdown
Considering the below markdown code, what I would like to do is target the <summary id="stage-one">Stage 1</summary> from inside the Stage 3 content as such [Link to Stage 1](#...
0
votes
0
answers
499
views
Using markdown, is it possible on hover to display text of a different part of the page or another page altogether?
In my markdown document I have certain personally defined keywords that I would like to have a description for shown on hover. I will be using those keywords several times within the document, but ...
1
vote
0
answers
329
views
GitHub multiline suggestion with expanded context
It's possible to add a multiline code suggestion to a PR like this, which is a really nice feature:
You can now suggest a specific change to multiple lines of code when reviewing a pull request. To ...
0
votes
1
answer
78
views
Markdown-to-HTML conversion on Github pages ignores backgrounds for fenced code examples
I am a first-time Github Pages designer. I have a large number of .md files which display beautifully in a Markdown editor, but when converted to HTML, none of the fenced code blocks have the gray ...
0
votes
0
answers
215
views
How to Enable Code Block "Copy" in VSCode similar to GitHub Flavored Markdown?
Anyone knows how to get "Copy" option in VSCode for code block like we get on github flavored markdown pages?
Online research says "Markdown All in One" extension can do that but I ...
0
votes
1
answer
229
views
Issue in rendering table in Github comments[EDIT]
So I using a python code to post comment on my PR commits on Github
# Create a table
table = f"""
| File Changed | Summary |
|--------------|---------|
{"".join(...
1
vote
0
answers
50
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 ...
7
votes
0
answers
430
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 ...
1
vote
1
answer
404
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')" ...
1
vote
1
answer
213
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.
...
1
vote
0
answers
192
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
126
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 ...
2
votes
1
answer
842
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$$
$$...
3
votes
1
answer
8k
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 ...
1
vote
0
answers
69
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-...
-1
votes
1
answer
613
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
96
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
34
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
2k
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
1
answer
137
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
487
views
Unable to render table on GitHub Readme
| Reference | Contract |
| ------------- |:-------------:| -----:|
| EIP-20 Token | 0x4c7507262dA41A5A96ae3F836D602d74Eb10A6d0 |
| Uniswap V2 | ...