github-markup 5.0.1 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yaml +28 -0
- data/.github/workflows/ci.yml +36 -13
- data/.github/workflows/stale.yml +27 -0
- data/.gitignore +3 -1
- data/CONTRIBUTING.md +12 -0
- data/Gemfile +6 -9
- data/Gemfile.lock +162 -0
- data/HISTORY.md +86 -0
- data/README.md +15 -2
- data/github-markup.gemspec +14 -9
- data/lib/github/commands/rest2html +3 -2
- data/lib/github/markup/markdown.rb +87 -3
- data/lib/github/markup/rdoc.rb +5 -1
- data/lib/github/markup.rb +1 -2
- data/lib/github/markups.rb +10 -10
- data/lib/github-markup.rb +1 -1
- data/test/coverage_test.rb +368 -0
- data/test/fixtures/cat.sh +2 -0
- data/test/fixtures/empty.sh +3 -0
- data/test/markdown_test.rb +96 -0
- data/test/markup_test.rb +11 -9
- data/test/markups/README.asciidoc.html +6 -6
- data/test/markups/README.creole.html +1 -5
- data/test/markups/README.directives.rst.html +2 -2
- data/test/markups/README.litcoffee.html +5 -5
- data/test/markups/README.long.rst.html +220 -362
- data/test/markups/README.mediawiki.html +20 -20
- data/test/markups/README.org +1 -1
- data/test/markups/README.org.html +31 -40
- data/test/markups/README.pod.html +15 -19
- data/test/markups/README.rdoc.html +4 -7
- data/test/markups/README.rst +4 -0
- data/test/markups/README.rst.html +28 -47
- data/test/markups/README.rst.txt.html +5 -10
- data/test/markups/README.toc.asciidoc.html +10 -12
- data/test/markups/README.toc.rst.html +7 -8
- data/test/test_helper.rb +29 -0
- metadata +59 -37
- data/.dockerignore +0 -1
- data/Dockerfile +0 -39
|
@@ -34,9 +34,9 @@ any conformant parser.</p>
|
|
|
34
34
|
<pre>
|
|
35
35
|
.. github display [on | off]
|
|
36
36
|
</pre>
|
|
37
|
-
<p>If you pass this the
|
|
37
|
+
<p>If you pass this the "on" value, then all unknown directives
|
|
38
38
|
will be displayed as literal code blocks. If you pass this
|
|
39
|
-
the
|
|
39
|
+
the "off" value, then unknown directives will not be displayed.</p>
|
|
40
40
|
<p>In addition to controlling the display of literal code blocks,
|
|
41
41
|
this also allows you to show comments specifically for github.</p>
|
|
42
42
|
<p>For example, somebody could place this at the top of their file:</p>
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<p>Taken from <a href="https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee">https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee</a></p>
|
|
4
4
|
</blockquote>
|
|
5
5
|
<p>comment comment</p>
|
|
6
|
-
<pre><code>test
|
|
6
|
+
<pre><code>test "basic literate CoffeeScript parsing", ->
|
|
7
7
|
ok yes
|
|
8
8
|
</code></pre>
|
|
9
9
|
<p>now with a...</p>
|
|
10
|
-
<pre><code>test
|
|
10
|
+
<pre><code>test "broken up indentation", ->
|
|
11
11
|
</code></pre>
|
|
12
12
|
<p>... broken up ...</p>
|
|
13
13
|
<pre><code> do ->
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
<pre><code> ok yes
|
|
17
17
|
</code></pre>
|
|
18
18
|
<p>Code must be separated from text by a blank line.</p>
|
|
19
|
-
<pre><code>test
|
|
19
|
+
<pre><code>test "code blocks must be preceded by a blank line", ->
|
|
20
20
|
</code></pre>
|
|
21
21
|
<p>The next line is part of the text and will not be executed.
|
|
22
22
|
fail()</p>
|
|
23
23
|
<pre><code> ok yes
|
|
24
24
|
</code></pre>
|
|
25
25
|
<p>Code in <code>backticks is not parsed</code> and...</p>
|
|
26
|
-
<pre><code>test
|
|
26
|
+
<pre><code>test "comments in indented blocks work", ->
|
|
27
27
|
do ->
|
|
28
28
|
do ->
|
|
29
29
|
# Regular comment.
|
|
@@ -51,5 +51,5 @@ like links and unordered lists, are fine:</p>
|
|
|
51
51
|
</li>
|
|
52
52
|
</ul>
|
|
53
53
|
<p>Tabs work too:</p>
|
|
54
|
-
<p>test
|
|
54
|
+
<p>test "tabbed code", ->
|
|
55
55
|
ok yes</p>
|