Questions tagged [commonmark]

A strongly specified, highly compatible implementation of Markdown

A standardized, strongly specified, highly compatible implementation of Markdown.


Resources

Introduction

Specifications

54 questions
17
votes
2 answers

What library does Github use for parsing markdown?

Github "uses" github flavored markdown but I haven't been able to find what that means exactly. What parsing library do they use on the client to render the preview(s)? Is the same lib used for *.md files, issues, and wiki pages? Bonus points if you…
funkyeah
  • 3,074
  • 5
  • 28
  • 47
10
votes
2 answers

Is it possible to create and preview a table using Visual Studio Code Markdown?

I am using Visual Studio Code to write some notes using its Markdown support. I would like to add some tables, but I can't find a way to do it. It seems that Visual Studio Code implements CommonMark which does not include tables in the…
Captain Whippet
  • 2,143
  • 4
  • 25
  • 34
8
votes
3 answers

Get rid of "duplicate label" warning in Sphinx

In Sphinx I get a ton of warnings like: /PATH/FILENAME:LINE: WARNING: duplicate label LABELNAME, other instance in /PATH/FILENAME It seems to see all section titles as "label"s and there is a bunch of section titles that are used in multiple…
Julian G
  • 93
  • 1
  • 6
6
votes
0 answers

How do I use any of the "CommonMark" modules to pass options to the commonmark library?

I need help getting a clue. I think my paltry experience compiling C code is a roadblock to understanding how to use some of the Raku modules for using the interface to the CommonMark C library to convert markdown to HTML. Problem: I'm on a mac with…
StevieD
  • 6,925
  • 2
  • 25
  • 45
6
votes
1 answer

Can't display multiple .md files in .rst toctree Sphinx

I can render my Readme.md files in Sphinx using recommonmark. But when I try to put in multiple Readme files in a .rst file toctree only the first one can be accessed from the documentation link. Kick! KVM ========= Source Code:…
Strommer
  • 313
  • 1
  • 2
  • 10
4
votes
1 answer

Markdown fences / code blocks background highlighting in VS Code

In Sublime Text, the extension MarkdownEditing has an option to Set Syntax: Markdown GFM. This causes the markdown code fences to have a different background than the main editor background, making them easy to spot. VS Code does not support Github…
4
votes
2 answers

do not remove whitespace in git commit messages

I'm writing commit messages with vim on both my linux and my windows computers. I'm using Bitbucket and GitHub as my repositories and would like to use some markup in commit messages to properly show the text in issues I link in my commits. Now the…
wullxz
  • 17,830
  • 8
  • 32
  • 51
3
votes
1 answer

How are tabs interpreted in CommonMark?

See the description before Example 6 in the CommonMark spec at: http://spec.commonmark.org/0.27/#example-5 I am trying to understand how the following code leads to a code-block starting with two spaces. >→→foo Example 6 shows that this would…
Lone Learner
  • 18,088
  • 20
  • 102
  • 200
3
votes
1 answer

Can I use Markdown syntax to compose e-mails in MoonMail?

MoonMail uses the Liquid templating engine for rendering e-mails. Is there a way I can use Markdown/CommonMark syntax?
JFX
  • 432
  • 1
  • 4
  • 10
3
votes
1 answer

How to create a nested list in Eclipse WikiText using Markdown format

I am using the WikiText plugin in Eclipse to write Markdown documentation of my current project. Unfortunately, despite the Help pages stating that the Markdown implementation complies with CommonMark, I can't seem to create nested lists such…
AbVog
  • 1,435
  • 22
  • 35
2
votes
1 answer

What is the correct way to use a pipe (|) in an inline code block in a table in Markdown?

In a table in Markdown, a pipe character (|) is used to separate columns in a table. However, it's also a pretty common character in code, especially as the bitwise OR operator. When writing inline code blocks in a Markdown table, how should the…
Clayton Ramsey
  • 123
  • 1
  • 2
2
votes
1 answer

What is the advantage of this sizing code in C?

Apologies for the generic question title, I wasn't sure how to phrase it properly (suggestions welcome!) I'm trying to get my head around some of the code for the Common Mark parser and came across this: /* Oversize the buffer by 50% to guarantee…
Henry Cooper
  • 97
  • 1
  • 2
  • 10
2
votes
1 answer

Creating tables in OpenAPI 3 through Commonmark

In Swagger/OpenAPI 2, I used Markdown tables, something like this: | A | B | C | |---|---|---| | T | F | F | | T | F | T | But after upgrading to OpenAPI 3, where Commonmark is used instead of Github-flavoured Markdown, it seems that the tables…
sle
  • 165
  • 1
  • 1
  • 8
2
votes
1 answer

How to create an extension to parse multiple line for thephpleague/commonmark

All, I am trying to create an extension (to extend AbstractBlockParser, I believe) which will find an opening tag, move the lines following into a block, and then stop when a closing tag is found (on its own on a last line). While looking at the…
Elliot
  • 1,457
  • 13
  • 40
2
votes
1 answer

Does CommonMark spec allows leading spaces before the list marker?

Is this a valid list in CommonMark? 1. Foo - Bar - Baz 2. Qux I am concerned about the validity of two leading spaces before each list marker, i.e. 1., 2., etc. Is it valid to provide leading spaces before the list marker? I am unable…
Lone Learner
  • 18,088
  • 20
  • 102
  • 200
1
2 3 4