├── CNAME ├── dingus ├── preview.html ├── dingus.css ├── Makefile ├── index.html ├── dingus.js └── bootstrap.min.js ├── current ├── index.html └── index.html.in ├── dingus.html ├── js ├── index.html └── LICENSE ├── Makefile ├── make_site_index.sh ├── template.html ├── changelog.spec.txt ├── index.html ├── 0.12 └── changes.html ├── changelog.txt ├── 0.25 └── changes.html └── 0.15 └── changes.html /CNAME: -------------------------------------------------------------------------------- 1 | spec.commonmark.org 2 | -------------------------------------------------------------------------------- /dingus/preview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |The most recent version of the CommonMark dingus can be found 10 | at http://spec.commonmark.org/dingus/.
12 | 13 | 14 | -------------------------------------------------------------------------------- /js/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |The most recent version of the CommonMark dingus can be found 10 | at http://spec.commonmark.org/dingus/.
12 | 13 | 14 | -------------------------------------------------------------------------------- /dingus/dingus.css: -------------------------------------------------------------------------------- 1 | h1.title { font-family: monospace; font-size: 120%; font-weight: bold; margin-top: 0.5em; margin-bottom: 0; } 2 | pre#htmlpre { height: 400px; overflow: scroll; resize: vertical; width: 100%; } 3 | pre#astpre { height: 400px; overflow: scroll; resize: vertical; width: 100%; } 4 | div#preview { height: 400px; resize: vertical; width: 100%; } 5 | iframe{ height: 400px; width: 100%; border: none; padding: 0; margin: 0; overflow: scroll; } 6 | div.row { margin-top: 1em; } 7 | blockquote { font-size: 100%; } 8 | footer { color: #555; text-align: center; margin: 1em; } 9 | pre { display: block; padding: 0.5em; color: #333; background: #f8f8ff } 10 | #warnings li { color: red; font-weight: bold; } 11 | label { padding-left: 1em; padding-top: 0; padding-bottom: 0; } 12 | div.timing { color: gray; visibility: hidden; height: 2em; } 13 | p#text-controls { height: 1em; margin-top: 1em; } 14 | a#permalink { margin-left: 1em; } 15 | span.timing { font-weight: bold; } 16 | .selected { background-color: #eeeeee; } 17 | textarea#text { width: 100%; overflow: scroll; resize: vertical; height: 400px; font-family: monospace; white-space: pre; word-wrap: normal; background-color: white; color: black; } 18 | -------------------------------------------------------------------------------- /dingus/Makefile: -------------------------------------------------------------------------------- 1 | ALL=commonmark.js 2 | COMPONENTS=lodash.min.js jquery.min.js jquery.min.map bootstrap.min.js bootstrap.min.css 3 | LIBFILES=../lib/blocks.js ../lib/common.js ../lib/from-code-point.js ../lib/inlines.js ../lib/index.js ../lib/node.js ../lib/normalize-reference.js ../lib/render/xml.js ../lib/render/html.js ../lib/render/renderer.js 4 | 5 | all: $(ALL) components 6 | 7 | .PHONY: all dingus components clean 8 | 9 | components: $(COMPONENTS) 10 | 11 | bower_components/%: 12 | bower install $(notdir $@) 13 | 14 | lodash.min.js: bower_components/lodash 15 | cp $ $(SPECVERSION)/spec.json; \ 14 | cp $(SPECVERSION)/index.html spec.html; \ 15 | ./make_site_index.sh $(SPECVERSION) | \ 16 | pandoc --template template.html -S -s -t html5 -o index.html ; \ 17 | git add spec.html $(SPECVERSION)/index.html $(SPECVERSION)/changes.html $(SPECVERSION)/spec.txt $(SPECVERSION)/spec.json ; \ 18 | sed -e "s/VERSION/$(SPECVERSION)/g" current/index.html.in > current/index.html ; \ 19 | git commit -a -m "Updated to version $(SPECVERSION) of spec"; \ 20 | git tag $(SPECVERSION) HEAD 21 | 22 | update: 23 | make -C $(JSREPO)/dingus ; \ 24 | cp -r $(JSREPO)/dingus . ; \ 25 | cp $(JSREPO)/dist/commonmark.js js/commonmark.js; \ 26 | cp $(JSREPO)/LICENSE js/LICENSE; \ 27 | cp $(MAINREPO)/changelog.txt changelog.txt; \ 28 | 29 | upload: 30 | git pull; git push; git push --tags 31 | 32 | -------------------------------------------------------------------------------- /make_site_index.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | SPECVERSION=$1 4 | VERSIONS=`ls -d -1 0.* | sort -r -g` 5 | 6 | echo "% CommonMark Spec" 7 | echo "" 8 | date=`grep '
53 |
56 | Latest version (0.27) (2016-11-18) (view changes)
99 |discussion forum | interactive dingus | repository | changelog
100 |Older versions:
101 || spec.txt | spec.txt | |||
|---|---|---|---|---|
| --- | --- | |||
| title: CommonMark Spec | title: CommonMark Spec | |||
| author: | author: | |||
| - John MacFarlane | - John MacFarlane | |||
| version: 0.11 | version: 0.12 | |||
| date: 2014-11-10 | date: 2014-11-10 | |||
| ... | ... | |||
| # Introduction | # Introduction | |||
| ## What is Markdown? | ## What is Markdown? | |||
| Markdown is a plain text format for writing structured documents, | Markdown is a plain text format for writing structured documents, | |||
| based on conventions used for indicating formatting in email and | based on conventions used for indicating formatting in email and | |||
| usenet posts. It was developed in 2004 by John Gruber, who wrote | usenet posts. It was developed in 2004 by John Gruber, who wrote | |||
| skipping to change at line 5088 | skipping to change at line 5088 | |||
| and title are given immediately after the link text. In [reference | and title are given immediately after the link text. In [reference | |||
| links](#reference-links) the destination and title are defined elsewhere | links](#reference-links) the destination and title are defined elsewhere | |||
| in the document. | in the document. | |||
| A [link text](@link-text) consists of a sequence of zero or more | A [link text](@link-text) consists of a sequence of zero or more | |||
| inline elements enclosed by square brackets (`[` and `]`). The | inline elements enclosed by square brackets (`[` and `]`). The | |||
| following rules apply: | following rules apply: | |||
| - Links may not contain other links, at any level of nesting. | - Links may not contain other links, at any level of nesting. | |||
| - Brackets are allowed in the link text only if (a) they are | - Brackets are allowed in the [link text](#link-text) only if (a) they | |||
| backslash-escaped or (b) they appear as a matched pair of brackets, | are backslash-escaped or (b) they appear as a matched pair of brackets, | |||
| with an open bracket `[`, a sequence of zero or more inlines, and | with an open bracket `[`, a sequence of zero or more inlines, and | |||
| a close bracket `]`. | a close bracket `]`. | |||
| - Backtick [code spans](#code-span), [autolinks](#autolink), and | - Backtick [code spans](#code-span), [autolinks](#autolink), and | |||
| raw [HTML tags](#html-tag) bind more tightly | raw [HTML tags](#html-tag) bind more tightly | |||
| than the brackets in link text. Thus, for example, | than the brackets in link text. Thus, for example, | |||
| `` [foo`]` `` could not be a link text, since the second `]` | `` [foo`]` `` could not be a link text, since the second `]` | |||
| is part of a code span. | is part of a code span. | |||
| - The brackets in link text bind more tightly than markers for | - The brackets in link text bind more tightly than markers for | |||
| skipping to change at line 5851 | skipping to change at line 5851 | |||
| <p>[foo]<a href="/url1">bar</a></p> | <p>[foo]<a href="/url1">bar</a></p> | |||
| . | . | |||
| ## Images | ## Images | |||
| Syntax for images is like the syntax for links, with one | Syntax for images is like the syntax for links, with one | |||
| difference. Instead of [link text](#link-text), we have an [image | difference. Instead of [link text](#link-text), we have an [image | |||
| description](@image-description). The rules for this are the | description](@image-description). The rules for this are the | |||
| same as for [link text](#link-text), except that (a) an | same as for [link text](#link-text), except that (a) an | |||
| image description starts with ` |  | |||
| . | . | |||
| <p><img src="/url" alt="foo" title="title" /></p> | <p><img src="/url" alt="foo" title="title" /></p> | |||
| . | . | |||
| . | . | |||
| ![foo *bar*] | ![foo *bar*] | |||
| [foo *bar*]: train.jpg "train & tracks" | [foo *bar*]: train.jpg "train & tracks" | |||
| . | . | |||
| <p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p> | <p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p> | |||
| . | . | |||
| . | . | |||
| ](/url2) | ](/url2) | |||
| . | . | |||
| <p></p> | <p><img src="/url2" alt="foo bar" /></p> | |||
| . | . | |||
| . | . | |||
| ](/url2) | ](/url2) | |||
| . | . | |||
| <p><img src="/url2" alt="foo bar" /></p> | <p><img src="/url2" alt="foo bar" /></p> | |||
| . | . | |||
| Though this spec is concerned with parsing, not rendering, it is | Though this spec is concerned with parsing, not rendering, it is | |||
| recommended that in rendering to HTML, only the plain string content | recommended that in rendering to HTML, only the plain string content | |||
| End of changes. 4 change blocks. | ||||
| 6 lines changed or deleted | 6 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||
`, comments, 286 | and `