gitlab-markup 1.5.0.pre

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.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.gitlab-ci.yml +27 -0
  4. data/.kick +26 -0
  5. data/.travis.yml +21 -0
  6. data/CONTRIBUTING.md +49 -0
  7. data/Gemfile +13 -0
  8. data/HISTORY.md +128 -0
  9. data/LICENSE +20 -0
  10. data/README.md +58 -0
  11. data/Rakefile +17 -0
  12. data/bin/github-markup +10 -0
  13. data/gitlab-markup.gemspec +25 -0
  14. data/lib/github-markup.rb +6 -0
  15. data/lib/github/commands/rest2html +200 -0
  16. data/lib/github/markup.rb +55 -0
  17. data/lib/github/markup/command_implementation.rb +71 -0
  18. data/lib/github/markup/gem_implementation.rb +30 -0
  19. data/lib/github/markup/implementation.rb +28 -0
  20. data/lib/github/markup/markdown.rb +60 -0
  21. data/lib/github/markup/rdoc.rb +26 -0
  22. data/lib/github/markups.rb +50 -0
  23. data/script/bootstrap +8 -0
  24. data/script/cibuild +20 -0
  25. data/test/fixtures/fail.sh +3 -0
  26. data/test/markup_test.rb +116 -0
  27. data/test/markups/README.asciidoc +23 -0
  28. data/test/markups/README.asciidoc.html +59 -0
  29. data/test/markups/README.creole +34 -0
  30. data/test/markups/README.creole.html +20 -0
  31. data/test/markups/README.litcoffee +59 -0
  32. data/test/markups/README.litcoffee.html +66 -0
  33. data/test/markups/README.markdown +2 -0
  34. data/test/markups/README.markdown.html +4 -0
  35. data/test/markups/README.mediawiki +30 -0
  36. data/test/markups/README.mediawiki.html +60 -0
  37. data/test/markups/README.noformat +2 -0
  38. data/test/markups/README.noformat.html +2 -0
  39. data/test/markups/README.org +131 -0
  40. data/test/markups/README.org.html +139 -0
  41. data/test/markups/README.pod +88 -0
  42. data/test/markups/README.pod.html +85 -0
  43. data/test/markups/README.rdoc +6 -0
  44. data/test/markups/README.rdoc.html +12 -0
  45. data/test/markups/README.rmd +3 -0
  46. data/test/markups/README.rmd.html +6 -0
  47. data/test/markups/README.rst +79 -0
  48. data/test/markups/README.rst.html +91 -0
  49. data/test/markups/README.rst.txt +21 -0
  50. data/test/markups/README.rst.txt.html +37 -0
  51. data/test/markups/README.textile +2 -0
  52. data/test/markups/README.textile.html +4 -0
  53. data/test/markups/README.toc.rst +30 -0
  54. data/test/markups/README.toc.rst.html +32 -0
  55. data/test/markups/README.txt +2 -0
  56. data/test/markups/README.txt.html +2 -0
  57. metadata +216 -0
@@ -0,0 +1,139 @@
1
+ <h1>org-ruby</h1>
2
+ <table>
3
+ <tr>
4
+ <td>Status:</td>
5
+ <td>Under Development</td>
6
+ </tr>
7
+ <tr>
8
+ <td>Location:</td>
9
+ <td><a href="http://github.com/wallyqs/org-ruby">http://github.com/wallyqs/org-ruby</a></td>
10
+ </tr>
11
+ <tr>
12
+ <td>Version:</td>
13
+ <td>0.9.0</td>
14
+ </tr>
15
+ </table>
16
+ <h1>1 Description</h1>
17
+ <p>Helpful Ruby routines for parsing orgmode files. The most
18
+ significant thing this library does today is convert orgmode files
19
+ to textile. Currently, you cannot do much to customize the
20
+ conversion. The supplied textile conversion is optimized for
21
+ extracting “content” from the orgfile as opposed to “metadata.”</p>
22
+ <h1>2 History</h1>
23
+ <h2>2.1 2014-02-08: Version 0.9.0</h2>
24
+ <ul>
25
+ <li>Let’s make sure <code>#+INCLUDE:</code> is not supported</li>
26
+ </ul>
27
+ <ul>
28
+ <li>And confirm that syntax highlight is supported</li>
29
+ </ul>
30
+ <pre lang="ruby">
31
+ module GitHub
32
+ module Markup
33
+ VERSION = 'test'
34
+ Version = VERSION
35
+ end
36
+ end
37
+ </pre>
38
+ <h2>2.2 2009-12-30: Version 0.5.1</h2>
39
+ <ul>
40
+ <li>Minor enhancement: Recognize lines starting with “:” as examples.</li>
41
+ <li>Minor enhancement: Recognize #+BEGIN_SRC as source blocks</li>
42
+ <li>Minor enhancement: Add “src” and “example” classes to &lt;pre&gt; blocks.</li>
43
+ </ul>
44
+ <h2>2.3 2009-12-30: Version 0.5.0</h2>
45
+ <ul>
46
+ <li>Parse (but not necessarily <b>use</b>) in-buffer settings. The following
47
+ in-buffer settings <b>are</b> used:
48
+ <ul>
49
+ <li>Understand the #+TITLE: directive.</li>
50
+ <li>Exporting todo keywords (option todo:t)</li>
51
+ <li>Numbering headlines (option num:t)</li>
52
+ <li>Skipping text before the first headline (option skip:t)</li>
53
+ <li>Skipping tables (option |:nil)</li>
54
+ <li>Custom todo keywords</li>
55
+ <li>EXPORT_SELECT_TAGS and EXPORT_EXLUDE_TAGS for controlling parts of
56
+ the tree to export</li>
57
+ </ul>
58
+ </li>
59
+ <li>Rewrite “file:(blah).org” links to “http:(blah).html” links. This
60
+ makes the inter-links to other org-mode files work.</li>
61
+ <li>Uses &lt;th&gt; tags inside table rows that precede table separators.</li>
62
+ <li>Bugfixes:
63
+ <ul>
64
+ <li>Headings now have HTML escaped.</li>
65
+ </ul>
66
+ </li>
67
+ </ul>
68
+ <h2>2.4 2009-12-29: Version 0.4.2</h2>
69
+ <ul>
70
+ <li>Got rid of the extraneous newline at the start of code blocks.</li>
71
+ <li>Everything now shows up in code blocks, even org-mode metadata.</li>
72
+ <li>Fixed bugs:
73
+ <ul>
74
+ <li>Regressed smart double quotes with HTML escaping. Added a test
75
+ case and fixed the regression.</li>
76
+ </ul>
77
+ </li>
78
+ </ul>
79
+ <h2>2.5 2009-12-29: Version 0.4.1</h2>
80
+ <ul>
81
+ <li>HTML is now escaped by default</li>
82
+ <li>org-mode comments will show up in a code block.</li>
83
+ </ul>
84
+ <h2>2.6 2009-12-29: Version 0.4</h2>
85
+ <ul>
86
+ <li>The first thing output in HTML gets the class “title”</li>
87
+ <li>HTML output is now indented</li>
88
+ <li>Proper support for multi-paragraph list items.
89
+ <p>See? This paragraph is part of the last bullet.</p>
90
+ </li>
91
+ <li>Fixed bugs:
92
+ <ul>
93
+ <li>“rake spec” wouldn’t work on Linux. Needed “require ‘rubygems’”.</li>
94
+ </ul>
95
+ </li>
96
+ </ul>
97
+ <h2>2.7 2009-12-27: Version 0.3</h2>
98
+ <ul>
99
+ <li>Uses rubypants to get better typography (smart quotes, elipses, etc…).</li>
100
+ <li>Fixed bugs:
101
+ <ul>
102
+ <li>Tables and lists did not get properly closed at the end of file</li>
103
+ <li>You couldn’t do inline formatting inside table cells</li>
104
+ <li>Characters in PRE blocks were not HTML escaped.</li>
105
+ </ul>
106
+ </li>
107
+ </ul>
108
+ <h2>2.8 2009-12-26: Version 0.2</h2>
109
+ <ul>
110
+ <li>Added <code>to_html</code> output on the parser.</li>
111
+ <li>Added support for the full range of inline markup: <b>bold</b>,
112
+ <i>italic</i>, <code>code</code>, <code>verbatim</code>, underline, <del>strikethrough</del>.</li>
113
+ <li>Lots of refactoring to make the code more maintainable.</li>
114
+ </ul>
115
+ <h2>2.9 2009-12-23: Version 0.1</h2>
116
+ <ul>
117
+ <li>Added support for block code, like this:
118
+ <pre>
119
+ def flush!
120
+ @logger.debug "FLUSH ==========&gt; #{@output_type}"
121
+ if (@output_type == :blank) then
122
+ @output &lt;&lt; "\n"
123
+ elsif (@buffer.length &gt; 0) then
124
+ if @cancel_modifier then
125
+ @output &lt;&lt; "p. " if @output_type == :paragraph
126
+ @cancel_modifier = false
127
+ end
128
+ @output &lt;&lt; @paragraph_modifier if (@paragraph_modifier and not sticky_modifier?)
129
+ @output &lt;&lt; @buffer.textile_substitution &lt;&lt; "\n"
130
+ end
131
+ @buffer = ""
132
+ end
133
+ </pre>
134
+ </li>
135
+ <li>Major code cleanup: Created the <code>OutputBuffer</code> class that
136
+ greatly simplified a lot of the messiness of <code>textile</code>
137
+ conversion.</li>
138
+ <li>Added support for line breaks within list items.</li>
139
+ </ul>
@@ -0,0 +1,88 @@
1
+ =head1 Matrixy
2
+
3
+ =head2 INTRODUCTION
4
+
5
+ This is a port of the MATLAB/Octave programming language to Parrot. See the
6
+ ROADMAP file for more information on the status of this project, and what else
7
+ needs to be done.
8
+
9
+ =head2 ABOUT
10
+
11
+ Primary goals are:
12
+
13
+ =over 4
14
+
15
+ =item * Create a working compiler that understands the majority of the
16
+ MATLAB/Octave programming language.
17
+
18
+ =back
19
+
20
+ =head2 IMPLEMENTATION
21
+
22
+ This project is broken into three primary components:
23
+
24
+ =over 4
25
+
26
+ =item * The first is the parser, located in the C<src/parser/> directory. The
27
+ parser proper is composed of three source files, F<grammar.pg> which is a
28
+ Perl6Grammar file, and F<actions.pm> which is the associated actions file
29
+ written in NQP, and F<grammar-oper.pm> which is the operator precidence parser.
30
+ In addition, several helper functions used by the parser are located in
31
+ C<src/internals>.
32
+
33
+ =item * The second component is the library of builtin functions in the
34
+ C<src/builtins/> directory. These functions are, currently, written primarily in
35
+ PIR. Function names prefixed with an underscore are "private" functions for use
36
+ with the parser. Other functions should have names which are the same as names
37
+ for regular MATLAB or Octave functions, since they will be available to the
38
+ HLL. These are also separated into different namespaces depending on visibility
39
+ and utility.
40
+
41
+ =item * A number of library functions are written in M, or mostly M with some
42
+ inline PIR code in C<toolbox/>.
43
+
44
+ =back
45
+
46
+ =head2 DEPENDENCIES
47
+
48
+ Matrixy depends on these dependencies:
49
+
50
+ =head3 Parrot
51
+
52
+ To get a proper version of Parrot to build Matrixy, you will need to check out
53
+ and build Parrot from source:
54
+
55
+ svn co http://svn.parrot.org/parrot/trunk parrot
56
+ cd parrot
57
+ perl Configure.pl
58
+ make && make test && make install-dev
59
+
60
+ =head3 Parrot-Linear-Algebra
61
+
62
+ The linear algebra package for Parrot is available separately and provides
63
+ functionality required by Matrixy. This includes matrix data types and matrix
64
+ manipulation libraries
65
+
66
+ =head2 BUILDING
67
+
68
+ Once all dependencies are in place, you can build Matrixy using this sequence of
69
+ commands:
70
+
71
+ perl Configure.pl
72
+ nmake test
73
+
74
+ =head2 TODO
75
+
76
+ * Parser
77
+ * Standard Builtins
78
+ * Test against Octave Test Suite.
79
+
80
+ =head2 BUGS
81
+
82
+ Lots!
83
+
84
+ =head2 CONTACT
85
+
86
+ If you need to contact the Matrixy team, go to the project home page at:
87
+
88
+ www.github.com\Whiteknight\matrixy
@@ -0,0 +1,85 @@
1
+ <a name="___top"></a>
2
+
3
+ <h1><a name="Matrixy">Matrixy</a></h1>
4
+
5
+ <h2><a name="INTRODUCTION">INTRODUCTION</a></h2>
6
+
7
+ <p>This is a port of the MATLAB/Octave programming language to Parrot.
8
+ See the ROADMAP file for more information on the status of this project,
9
+ and what else needs to be done.</p>
10
+
11
+ <h2><a name="ABOUT">ABOUT</a></h2>
12
+
13
+ <p>Primary goals are:</p>
14
+
15
+ <ul>
16
+ <li>Create a working compiler that understands the majority of the MATLAB/Octave programming language.</li>
17
+ </ul>
18
+
19
+ <h2><a name="IMPLEMENTATION">IMPLEMENTATION</a></h2>
20
+
21
+ <p>This project is broken into three primary components:</p>
22
+
23
+ <ul>
24
+ <li>The first is the parser,
25
+ located in the <code>src/parser/</code> directory.
26
+ The parser proper is composed of three source files,
27
+ <em>grammar.pg</em> which is a Perl6Grammar file,
28
+ and <em>actions.pm</em> which is the associated actions file written in NQP,
29
+ and <em>grammar-oper.pm</em> which is the operator precidence parser.
30
+ In addition,
31
+ several helper functions used by the parser are located in <code>src/internals</code>.</li>
32
+
33
+ <li>The second component is the library of builtin functions in the <code>src/builtins/</code> directory.
34
+ These functions are,
35
+ currently,
36
+ written primarily in PIR.
37
+ Function names prefixed with an underscore are "private" functions for use with the parser.
38
+ Other functions should have names which are the same as names for regular MATLAB or Octave functions,
39
+ since they will be available to the HLL.
40
+ These are also separated into different namespaces depending on visibility and utility.</li>
41
+
42
+ <li>A number of library functions are written in M,
43
+ or mostly M with some inline PIR code in <code>toolbox/</code>.</li>
44
+ </ul>
45
+
46
+ <h2><a name="DEPENDENCIES">DEPENDENCIES</a></h2>
47
+
48
+ <p>Matrixy depends on these dependencies:</p>
49
+
50
+ <h3><a name="Parrot">Parrot</a></h3>
51
+
52
+ <p>To get a proper version of Parrot to build Matrixy,
53
+ you will need to check out and build Parrot from source:</p>
54
+
55
+ <pre> svn co http://svn.parrot.org/parrot/trunk parrot
56
+ cd parrot
57
+ perl Configure.pl
58
+ make &amp;&amp; make test &amp;&amp; make install-dev</pre>
59
+
60
+ <h3><a name="Parrot-Linear-Algebra">Parrot-Linear-Algebra</a></h3>
61
+
62
+ <p>The linear algebra package for Parrot is available separately and provides functionality required by Matrixy. This includes matrix data types and matrix manipulation libraries</p>
63
+
64
+ <h2><a name="BUILDING">BUILDING</a></h2>
65
+
66
+ <p>Once all dependencies are in place, you can build Matrixy using this sequence of commands:</p>
67
+
68
+ <pre> perl Configure.pl
69
+ nmake test</pre>
70
+
71
+ <h2><a name="TODO">TODO</a></h2>
72
+
73
+ <pre> * Parser
74
+ * Standard Builtins
75
+ * Test against Octave Test Suite.</pre>
76
+
77
+ <h2><a name="BUGS">BUGS</a></h2>
78
+
79
+ <p>Lots!</p>
80
+
81
+ <h2><a name="CONTACT">CONTACT</a></h2>
82
+
83
+ <p>If you need to contact the Matrixy team, go to the project home page at:</p>
84
+
85
+ <p>www.github.com\Whiteknight\matrixy</p>
@@ -0,0 +1,6 @@
1
+ * One
2
+ * Two
3
+
4
+ This is an {absolute link}[http://github.com]. So is this: http://github.com
5
+
6
+ This is a {relative link}[link:rawr.html]. So is this: link:rawr.html
@@ -0,0 +1,12 @@
1
+ <ul>
2
+ <li>
3
+ <p>One</p>
4
+ </li>
5
+ <li>
6
+ <p>Two</p>
7
+ </li>
8
+ </ul>
9
+
10
+ <p>This is an <a href="http://github.com">absolute link</a>. So is this: <a href="http://github.com">github.com</a></p>
11
+
12
+ <p>This is a <a href="rawr.html">relative link</a>. So is this: <a href="rawr.html">rawr.html</a></p>
@@ -0,0 +1,3 @@
1
+ # Title
2
+ * One
3
+ * Two
@@ -0,0 +1,6 @@
1
+ <h1>Title</h1>
2
+
3
+ <ul>
4
+ <li>One</li>
5
+ <li>Two</li>
6
+ </ul>
@@ -0,0 +1,79 @@
1
+ Header 1
2
+ ========
3
+ --------
4
+ Subtitle
5
+ --------
6
+
7
+ Example text.
8
+
9
+ .. contents:: Table of Contents
10
+
11
+ Header 2
12
+ --------
13
+
14
+ 1. Blah blah ``code`` blah
15
+
16
+ 2. More ``code``, hooray
17
+
18
+ 3. Somé UTF-8°
19
+
20
+ The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.
21
+
22
+ .. csv-table:: Things that are Awesome (on a scale of 1-11)
23
+ :quote: ”
24
+
25
+ Thing,Awesomeness
26
+ Icecream, 7
27
+ Honey Badgers, 10.5
28
+ Nickelback, -2
29
+ Iron Man, 10
30
+ Iron Man 2, 3
31
+ Tabular Data, 5
32
+ Made up ratings, 11
33
+
34
+ .. code::
35
+
36
+ A block of code
37
+
38
+ .. code:: python
39
+
40
+ python.code('hooray')
41
+
42
+ .. doctest:: ignored
43
+
44
+ >>> some_function()
45
+ 'result'
46
+
47
+ ============== ==========================================================
48
+ Travis http://travis-ci.org/tony/pullv
49
+ Docs http://pullv.rtfd.org
50
+ API http://pullv.readthedocs.org/en/latest/api.html
51
+ Issues https://github.com/tony/pullv/issues
52
+ Source https://github.com/tony/pullv
53
+ ============== ==========================================================
54
+
55
+
56
+ .. image:: https://scan.coverity.com/projects/621/badge.svg
57
+ :target: https://scan.coverity.com/projects/621
58
+ :alt: Coverity Scan Build Status
59
+
60
+ .. image:: https://scan.coverity.com/projects/621/badge.svg
61
+ :alt: Coverity Scan Build Status
62
+
63
+ Field list
64
+ ----------
65
+
66
+ :123456789 123456789 123456789 123456789 123456789 1: Uh-oh! This name is too long!
67
+ :123456789 123456789 123456789 123456789 1234567890: this is a long name,
68
+ but no problem!
69
+ :123456789 12345: this is not so long, but long enough for the default!
70
+ :123456789 1234: this should work even with the default :)
71
+
72
+ someone@somewhere.org
73
+
74
+ Press :kbd:`Ctrl+C` to quit
75
+
76
+
77
+ .. raw:: html
78
+
79
+ <p><strong>RAW HTML!</strong></p><style> p {color:blue;} </style>
@@ -0,0 +1,91 @@
1
+ <h1>Header 1</h1>
2
+ <h2>Subtitle</h2>
3
+ <p>Example text.</p>
4
+ <div>
5
+ <p>Table of Contents</p>
6
+ <ul>
7
+ <li><a href="#header-2">Header 2</a></li>
8
+ <li><a href="#field-list">Field list</a></li>
9
+ </ul>
10
+ </div>
11
+ <a name="header-2"></a>
12
+ <h2><a href="#id1">Header 2</a></h2>
13
+ <ol>
14
+ <li>Blah blah <code>code</code> blah</li>
15
+ <li>More <code>code</code>, hooray</li>
16
+ <li>Somé UTF-8°</li>
17
+ </ol>
18
+ <p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.</p>
19
+ <pre>
20
+ A block of code
21
+ </pre>
22
+ <pre lang="python">
23
+ python.code('hooray')
24
+ </pre>
25
+ <pre lang="python">
26
+ &gt;&gt;&gt; some_function()
27
+ 'result'
28
+ </pre>
29
+ <table>
30
+
31
+
32
+
33
+
34
+ <tbody valign="top">
35
+ <tr>
36
+ <td>Travis</td>
37
+ <td><a href="http://travis-ci.org/tony/pullv">http://travis-ci.org/tony/pullv</a></td>
38
+ </tr>
39
+ <tr>
40
+ <td>Docs</td>
41
+ <td><a href="http://pullv.rtfd.org">http://pullv.rtfd.org</a></td>
42
+ </tr>
43
+ <tr>
44
+ <td>API</td>
45
+ <td><a href="http://pullv.readthedocs.org/en/latest/api.html">http://pullv.readthedocs.org/en/latest/api.html</a></td>
46
+ </tr>
47
+ <tr>
48
+ <td>Issues</td>
49
+ <td><a href="https://github.com/tony/pullv/issues">https://github.com/tony/pullv/issues</a></td>
50
+ </tr>
51
+ <tr>
52
+ <td>Source</td>
53
+ <td><a href="https://github.com/tony/pullv">https://github.com/tony/pullv</a></td>
54
+ </tr>
55
+ </tbody>
56
+ </table>
57
+ <a href="https://scan.coverity.com/projects/621"><img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
58
+ </a>
59
+ <img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
60
+ <a name="field-list"></a>
61
+ <h2><a href="#id2">Field list</a></h2>
62
+ <table frame="void" rules="none">
63
+
64
+
65
+ <tbody valign="top">
66
+ <tr><th colspan="2">123456789 123456789 123456789 123456789 123456789 1:</th></tr>
67
+ <tr>
68
+ <td> </td>
69
+ <td>Uh-oh! This name is too long!</td>
70
+ </tr>
71
+ <tr>
72
+ <th>123456789 123456789 123456789 123456789 1234567890:</th>
73
+ <td>this is a long name,
74
+ but no problem!</td>
75
+ </tr>
76
+ <tr>
77
+ <th>123456789 12345:</th>
78
+ <td>this is not so long, but long enough for the default!</td>
79
+ </tr>
80
+ <tr>
81
+ <th>123456789 1234:</th>
82
+ <td>this should work even with the default :)</td>
83
+ </tr>
84
+ </tbody>
85
+ </table>
86
+
87
+ <p><a href="mailto:someone@somewhere.org">someone@somewhere.org</a></p>
88
+
89
+ <p>Press <kbd>Ctrl+C</kbd> to quit</p>
90
+
91
+ <p><strong>RAW HTML!</strong></p> p {color:blue;}