├── CNAME ├── dingus ├── preview.html ├── Makefile ├── dingus.css ├── 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 └── 0.17 └── 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 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | MAINREPO?=../CommonMark 2 | JSREPO?=../commonmark.js 3 | SPECVERSION=$(shell grep version: $(MAINREPO)/spec.txt | sed -e 's/version: *//') 4 | 5 | all: update current/index.html 6 | git tag --list | grep -q -v $(SPECVERSION) ; \ 7 | mkdir -p $(SPECVERSION) ; \ 8 | make -C $(MAINREPO) spec.html ; \ 9 | cp $(MAINREPO)/spec.html $(SPECVERSION)/index.html; \ 10 | cp $(MAINREPO)/spec.txt $(SPECVERSION)/spec.txt; \ 11 | cp $(SPECVERSION)/index.html spec.html; \ 12 | ./make_site_index.sh $(SPECVERSION) | \ 13 | pandoc --template template.html -S -s -t html5 -o index.html ; \ 14 | git add spec.html $(SPECVERSION)/index.html $(SPECVERSION)/changes.html $(SPECVERSION)/spec.txt ; \ 15 | git commit -a -m "Updated to version $(SPECVERSION) of spec"; \ 16 | git tag $(SPECVERSION) HEAD 17 | 18 | current/index.html: current/index.html.in 19 | sed -e "s/VERSION/$(SPECVERSION)/g" $< > $@ 20 | 21 | update: 22 | make -C $(JSREPO)/dingus ; \ 23 | cp -r $(JSREPO)/dingus . ; \ 24 | cp $(JSREPO)/dist/commonmark.js js/commonmark.js; \ 25 | cp $(JSREPO)/LICENSE js/LICENSE; \ 26 | cp $(MAINREPO)/changelog.txt changelog.txt; \ 27 | 28 | upload: 29 | git pull; git push; git push --tags 30 | 31 | -------------------------------------------------------------------------------- /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/html.js ../lib/inlines.js ../lib/index.js ../lib/node.js ../lib/normalize-reference.js ../lib/xml.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/index.html | perl -pe 's/^.*(\d\d\d\d-\d\d-\d\d).*$/\1/'` 9 | echo "[**Latest version ($SPECVERSION)**]($SPECVERSION/) ($date) ([view changes]($SPECVERSION/changes.html 'See changes from previous version'))" 10 | echo "" 11 | echo "[discussion forum](http://talk.commonmark.org/) | " 12 | echo "[interactive dingus](dingus/) | " 13 | echo "[repository](https://github.com/jgm/CommonMark/) | " 14 | echo "[changelog](changelog.txt)" 15 | echo "" 16 | echo "Older versions:" 17 | echo "" 18 | for vers in $VERSIONS 19 | do 20 | date=`grep '
53 |
56 | Latest version (0.26) (2016-07-15) (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, 216 | and `