summaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt32
1 files changed, 18 insertions, 14 deletions
diff --git a/spec.txt b/spec.txt
index e3f0cd8..64a36b1 100644
--- a/spec.txt
+++ b/spec.txt
@@ -1,9 +1,9 @@
---
-title: Standard Markdown Spec
+title: CommonMark Spec
author:
- John MacFarlane
version: 1
-date: 2014-07-21
+date: 2014-09-06
...
# Introduction
@@ -203,15 +203,19 @@ to a certain encoding.
Tabs in lines are expanded to spaces, with a tab stop of 4 characters:
.
-foo→baz→→bim
+→foo→baz→→bim
.
-<p>foo baz bim</p>
+<pre><code>foo baz bim
+</code></pre>
.
.
-οὐ→χρῆν
+ a→a
+ ὐ→a
.
-<p>οὐ χρῆν</p>
+<pre><code>a a
+ὐ a
+</code></pre>
.
Line endings are replaced by newline characters (LF).
@@ -1282,9 +1286,9 @@ bar
.
An [info string](#info-string) can be provided after the opening code fence.
-Opening and closing spaces will be stripped, and the first word
-is used here to populate the `class` attribute of the enclosing
-`pre` tag.
+Opening and closing spaces will be stripped, and the first word, prefixed
+with `language-`, is used as the value for the `class` attribute of the
+`code` element within the enclosing `pre` element.
.
```ruby
@@ -1293,7 +1297,7 @@ def foo(x)
end
```
.
-<pre class="ruby"><code>def foo(x)
+<pre><code class="language-ruby">def foo(x)
return 3
end
</code></pre>
@@ -1306,7 +1310,7 @@ def foo(x)
end
~~~~~~~
.
-<pre class="ruby"><code>def foo(x)
+<pre><code class="language-ruby">def foo(x)
return 3
end
</code></pre>
@@ -1316,7 +1320,7 @@ end
````;
````
.
-<pre class=";"><code></code></pre>
+<pre><code class="language-;"></code></pre>
.
Info strings for backtick code blocks cannot contain backticks:
@@ -3716,7 +3720,7 @@ blocks](#fenced-code-block):
foo
```
.
-<pre class="foo+bar"><code>foo
+<pre><code class="language-foo+bar">foo
</code></pre>
.
@@ -3809,7 +3813,7 @@ code blocks, including raw HTML, URLs, [link titles](#link-title), and
foo
```
.
-<pre class="f&ouml;&ouml;"><code>foo
+<pre><code class="language-f&ouml;&ouml;">foo
</code></pre>
.