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
0
votes
1 answer

How to create inline raw HTML element in CommonMark?

I am trying out CommonMark at http://spec.commonmark.org/dingus/ I want the following HTML output, i.e. Foo and Baz are emphasized but Bar is not emphasized.

Foo *Bar* Baz

I tried various inputs, but none of them works. I…
Lone Learner
  • 18,088
  • 20
  • 102
  • 200
0
votes
1 answer

CommonMark Parsing ***

Let's say I want to parse the string ***cat*** into Markdown using the CommonMark standard. The standard says (http://spec.commonmark.org/0.28/#phase-2-inline-structure): .... If one is found: Figure out whether we have emphasis or strong emphasis:…
thatidiotguy
  • 8,701
  • 13
  • 60
  • 105
0
votes
1 answer

How do I autolink a nearby file in CommonMark?

I am creating a README.md file and in it I want to link to COPYING.md in the same directory. I tried the following markup, but the link is not rendered: See for details. How can I create such a link? (Obviously it depends on the…
lofidevops
  • 15,528
  • 14
  • 79
  • 119
0
votes
2 answers

Regex to match full name with comma or space

I'm working with CommonMark and I've created a '@mention' parser that will return a link when an @mention is found. However, I'm tweaking it to link full names instead of usernames. Here's what I currently…
Steve Bauman
  • 8,165
  • 7
  • 40
  • 56
0
votes
1 answer

PHP League Commonmark returns HTML wrapped in quotes

I am using the PHP League Commonmark package in a Laravel application. Commonmark's convertToHtml() is returning html wrapped in double quotes. This content is, of course, rendered on the page with the html tags displayed. I am using a presenter to…
Roger Creasy
  • 1,419
  • 2
  • 19
  • 35
0
votes
1 answer

Why does CommonMark consider this 7 space indent a code block?

I'm storing some notes with CommonMark and I noticed that this snippet seems to render differently on SO (echo is indented 7 spaces). 1. Print Windows folder path echo %windir% Here it is interpreted as a code block on…
Christopher Galpin
  • 1,088
  • 12
  • 27
0
votes
2 answers

CommonMark inserts list in the middle of paragraph

I expect the following text (note newlines at the 80 character mark): This worked for a few months. Unfortunately, occasionally a test would time out and fail after 18 seconds - maybe 1 in 100 test runs would fail with a timeout. Normally when the…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
0
votes
0 answers

How To Save CommonMark In MongoDB?

I'd like to support saving CommonMark data in my node application. I've never dealt with saving Markdown or CommonMark to a Mongo database before. Should I save CommonMark data as a simple string in Mongo or is there a more optimal way to store…
ac360
  • 7,735
  • 13
  • 52
  • 91
-1
votes
2 answers

extract first p tag and first h1 tag with commonmark

Suppose i have the following markdown # Comman mark is **just great** You can try CommonMark here. This dingus is powered by [commonmark.js](https://github.com/commonmark/commonmark.js), the JavaScript reference implementation. ## Try CommonMark 1.…
Rahul
  • 1,858
  • 1
  • 12
  • 33
1 2 3
4