github-markup 6.0.0 → 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.
@@ -1,9 +1,9 @@
1
- <p><a href="Home">» JRuby Project Wiki Home Page</a>
2
- </p><h1>Embedding JRuby</h1>
1
+ <p><a>» JRuby Project Wiki Home Page</a>
2
+ <h1>Embedding JRuby</h1>
3
3
  Using Java from Ruby is JRuby's best-known feature---but you can also go in the other direction, and use Ruby from Java. There are several different ways to do this. You can execute entire Ruby scripts, call individual Ruby methods, or even implement a Java interface in Ruby (thus allowing you to treat Ruby objects like Java ones). We refer to all these techniques generically as "embedding." This section will explain how to embed JRuby in your Java project.
4
-
5
- <p></p><table summary="Contents"><tr><td>
6
- <div><h2>Table of Contents</h2></div>
4
+ </p>
5
+ <p><table id="toc" summary="Contents"><tr><td>
6
+ <div id="toctitle"><h2>Table of Contents</h2></div>
7
7
  <ul>
8
8
  <li>
9
9
  <a href="#Red_Bridge_JRuby_Embed">Red Bridge (JRuby Embed)</a><ul><li><a href="#Features_of_Red_Bridge">Features of Red Bridge</a></li></ul>
@@ -12,53 +12,53 @@ Using Java from Ruby is JRuby's best-known feature---but you can also go in the
12
12
  <li><a href="#References">References</a></li>
13
13
  </ul>
14
14
  </td></tr></table>
15
-
15
+ </p>
16
16
 
17
17
  <h1>
18
- <a name="Red_Bridge_JRuby_Embed"></a>Red Bridge (JRuby Embed)
18
+ <a name="Red_Bridge_JRuby_Embed"></a><span id="Red_Bridge_JRuby_Embed">Red Bridge (JRuby Embed)</span>
19
19
  </h1>
20
20
 
21
21
 
22
22
 
23
23
  <p><tt>one-&lt;two</tt>
24
- </p><pre>a-b</pre>
25
-
26
- <p>JRuby has long had a private embedding API, which was closely tied to the runtime's internals and therefore changed frequently as JRuby evolved. Since version 1.4, however, we have also provided a more stable public API, known as Red Bridge or JRuby Embed. Existing Java programs written to the <a href="DirectJRubyEmbedding">legacy API</a> should still work, but we strongly recommend Red Bridge for all new projects.
24
+ <pre>a-b</pre>
25
+ </p>
26
+ <p>JRuby has long had a private embedding API, which was closely tied to the runtime's internals and therefore changed frequently as JRuby evolved. Since version 1.4, however, we have also provided a more stable public API, known as Red Bridge or JRuby Embed. Existing Java programs written to the <a>legacy API</a> should still work, but we strongly recommend Red Bridge for all new projects.
27
27
  </p>
28
28
 
29
29
  <h2>
30
- <a name="Features_of_Red_Bridge"></a>Features of Red Bridge
30
+ <a name="Features_of_Red_Bridge"></a><span id="Features_of_Red_Bridge">Features of Red Bridge</span>
31
31
  </h2>
32
32
 
33
33
 
34
- <p>Red Bridge consists of two layers: Embed Core on the bottom, and implementations of <a href="http://www.jcp.org/en/jsr/detail?id=223" target="_blank">JSR223</a> and <a href="http://jakarta.apache.org/bsf/" target="_blank">BSF</a> on top. Embed Core is JRuby-specific, and can take advantage of much of JRuby's power. JSR223 and BSF are more general interfaces that provide a common ground across scripting languages.
34
+ <p>Red Bridge consists of two layers: Embed Core on the bottom, and implementations of <a href="http://www.jcp.org/en/jsr/detail?id=223">JSR223</a> and <a href="http://jakarta.apache.org/bsf/">BSF</a> on top. Embed Core is JRuby-specific, and can take advantage of much of JRuby's power. JSR223 and BSF are more general interfaces that provide a common ground across scripting languages.
35
35
  </p>
36
36
  <p>Which API should you use? For projects where Ruby is the only scripting language involved, we recommend Embed Core for the following reasons:
37
37
  </p>
38
38
 
39
39
 
40
40
 
41
- <p></p><ol>
41
+ <p><ol>
42
42
  <li>With Embed Core, you can create several Ruby environments in one JVM, and configure them individually (via <code>org.jruby.RubyInstanceConfig</code>. With the other APIs, configuration options can only be set globally, via the <code>System</code> properties.</li>
43
43
  <li>Embed Core offers several shortcuts, such as loading scripts from a <code>java.io.InputStream</code>, or returning Java-friendly objects from Ruby code. These allow you to skip a lot of boilerplate.</li>
44
44
  </ol>
45
45
  For projects requiring multiple scripting languages, JSR223 is a good fit. Though the API is language-independent, JRuby's implementation of it allows you to set some Ruby-specific options. In particular, you can control the threading model of the scripting engine, the lifetime of local variables, compilation mode, and how line numbers are displayed.
46
-
47
- <p>The full <a href="http://jruby-embed.kenai.com/docs/" target="_blank">API documentation</a> has all the gory details. It's worth talking about a couple of the finer points here.
46
+ </p>
47
+ <p>The full <a href="http://jruby-embed.kenai.com/docs/">API documentation</a> has all the gory details. It's worth talking about a couple of the finer points here.
48
48
  </p>
49
49
 
50
50
  <h1>
51
- <a name="Previous_Embedding_JRuby_Page"></a>Previous Embedding JRuby Page
51
+ <a name="Previous_Embedding_JRuby_Page"></a><span id="Previous_Embedding_JRuby_Page">Previous Embedding JRuby Page</span>
52
52
  </h1>
53
53
 
54
54
 
55
- <p>We recommend using Embed Core; however, if you're maintaining code that uses the old API, you can find its documentation on the <a href="JavaIntegration">legacy embedding</a><sup>[<a href="#cite_note-1">1</a>]</sup> page.
55
+ <p>We recommend using Embed Core; however, if you're maintaining code that uses the old API, you can find its documentation on the <a>legacy embedding</a><sup id="cite_ref-1-0">[<a href="#cite_note-1">1</a>]</sup> page.
56
56
  </p>
57
57
 
58
58
  <h1>
59
- <a name="References"></a>References
59
+ <a name="References"></a><span id="References">References</span>
60
60
  </h1>
61
61
 
62
62
 
63
- <p></p><ol><li>
64
- <b><a href="#cite_ref-1-0">^</a> </b> This link goes nowhere.</li></ol>
63
+ <p><ol><li id="cite_note-1">
64
+ <b><a href="#cite_ref-1-0">^</a> </b> This link goes nowhere.</li></ol></p>
@@ -1,28 +1,19 @@
1
1
  <h1>org-ruby</h1>
2
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>
3
+ <tr><td>Status:</td><td>Under Development</td></tr>
4
+ <tr><td>Location:</td><td><a href="http://github.com/wallyqs/org-ruby">http://github.com/wallyqs/org-ruby</a></td></tr>
5
+ <tr><td>Version:</td><td>0.9.0</td></tr>
15
6
  </table>
16
- <h1>1 Description</h1>
7
+ <h1><span>1</span> Description</h1>
17
8
  <p>Helpful Ruby routines for parsing orgmode files. The most
18
9
  significant thing this library does today is convert orgmode files
19
10
  to textile. Currently, you cannot do much to customize the
20
11
  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>
12
+ extracting &#8220;content&#8221; from the orgfile as opposed to &#8220;metadata.&#8221;</p>
13
+ <h1><span>2</span> History</h1>
14
+ <h2><span>2.1</span> 2014-02-08: Version 0.9.0</h2>
24
15
  <ul>
25
- <li>Let’s make sure <code>#+INCLUDE:</code> is not supported</li>
16
+ <li>Let&#8217;s make sure <code>#+INCLUDE:</code> is not supported</li>
26
17
  </ul>
27
18
  <ul>
28
19
  <li>And confirm that syntax highlight is supported</li>
@@ -30,18 +21,18 @@
30
21
  <pre lang="ruby">
31
22
  module GitHub
32
23
  module Markup
33
- VERSION = 'test'
24
+ VERSION = &#39;test&#39;
34
25
  Version = VERSION
35
26
  end
36
27
  end
37
28
  </pre>
38
- <h2>2.2 2009-12-30: Version 0.5.1</h2>
29
+ <h2><span>2.2</span> 2009-12-30: Version 0.5.1</h2>
39
30
  <ul>
40
- <li>Minor enhancement: Recognize lines starting with “:” as examples.</li>
31
+ <li>Minor enhancement: Recognize lines starting with &#8220;:&#8221; as examples.</li>
41
32
  <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>
33
+ <li>Minor enhancement: Add &#8220;src&#8221; and &#8220;example&#8221; classes to &lt;pre&gt; blocks.</li>
43
34
  </ul>
44
- <h2>2.3 2009-12-30: Version 0.5.0</h2>
35
+ <h2><span>2.3</span> 2009-12-30: Version 0.5.0</h2>
45
36
  <ul>
46
37
  <li>Parse (but not necessarily <b>use</b>) in-buffer settings. The following
47
38
  in-buffer settings <b>are</b> used:
@@ -56,7 +47,7 @@ end
56
47
  the tree to export</li>
57
48
  </ul>
58
49
  </li>
59
- <li>Rewrite “file:(blah).org” links to “http:(blah).html” links. This
50
+ <li>Rewrite &#8220;file:(blah).org&#8221; links to &#8220;http:(blah).html&#8221; links. This
60
51
  makes the inter-links to other org-mode files work.</li>
61
52
  <li>Uses &lt;th&gt; tags inside table rows that precede table separators.</li>
62
53
  <li>Bugfixes:
@@ -65,7 +56,7 @@ end
65
56
  </ul>
66
57
  </li>
67
58
  </ul>
68
- <h2>2.4 2009-12-29: Version 0.4.2</h2>
59
+ <h2><span>2.4</span> 2009-12-29: Version 0.4.2</h2>
69
60
  <ul>
70
61
  <li>Got rid of the extraneous newline at the start of code blocks.</li>
71
62
  <li>Everything now shows up in code blocks, even org-mode metadata.</li>
@@ -76,59 +67,59 @@ end
76
67
  </ul>
77
68
  </li>
78
69
  </ul>
79
- <h2>2.5 2009-12-29: Version 0.4.1</h2>
70
+ <h2><span>2.5</span> 2009-12-29: Version 0.4.1</h2>
80
71
  <ul>
81
72
  <li>HTML is now escaped by default</li>
82
73
  <li>org-mode comments will show up in a code block.</li>
83
74
  </ul>
84
- <h2>2.6 2009-12-29: Version 0.4</h2>
75
+ <h2><span>2.6</span> 2009-12-29: Version 0.4</h2>
85
76
  <ul>
86
- <li>The first thing output in HTML gets the class “title”</li>
77
+ <li>The first thing output in HTML gets the class &#8220;title&#8221;</li>
87
78
  <li>HTML output is now indented</li>
88
79
  <li>Proper support for multi-paragraph list items.
89
80
  <p>See? This paragraph is part of the last bullet.</p>
90
81
  </li>
91
82
  <li>Fixed bugs:
92
83
  <ul>
93
- <li>“rake spec” wouldn’t work on Linux. Needed “require ‘rubygems’”.</li>
84
+ <li>&#8220;rake spec&#8221; wouldn&#8217;t work on Linux. Needed &#8220;require &#8216;rubygems&#8217;&#8221;.</li>
94
85
  </ul>
95
86
  </li>
96
87
  </ul>
97
- <h2>2.7 2009-12-27: Version 0.3</h2>
88
+ <h2><span>2.7</span> 2009-12-27: Version 0.3</h2>
98
89
  <ul>
99
- <li>Uses rubypants to get better typography (smart quotes, ellipses, etc…).</li>
90
+ <li>Uses rubypants to get better typography (smart quotes, ellipses, etc&#8230;).</li>
100
91
  <li>Fixed bugs:
101
92
  <ul>
102
93
  <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>
94
+ <li>You couldn&#8217;t do inline formatting inside table cells</li>
104
95
  <li>Characters in PRE blocks were not HTML escaped.</li>
105
96
  </ul>
106
97
  </li>
107
98
  </ul>
108
- <h2>2.8 2009-12-26: Version 0.2</h2>
99
+ <h2><span>2.8</span> 2009-12-26: Version 0.2</h2>
109
100
  <ul>
110
101
  <li>Added <code>to_html</code> output on the parser.</li>
111
102
  <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>
103
+ <i>italic</i>, <code>code</code>, <code>verbatim</code>, <span>underline</span>, <del>strikethrough</del>.</li>
113
104
  <li>Lots of refactoring to make the code more maintainable.</li>
114
105
  </ul>
115
- <h2>2.9 2009-12-23: Version 0.1</h2>
106
+ <h2><span>2.9</span> 2009-12-23: Version 0.1</h2>
116
107
  <ul>
117
108
  <li>Added support for block code, like this:
118
109
  <pre>
119
110
  def flush!
120
- @logger.debug "FLUSH ==========&gt; #{@output_type}"
111
+ @logger.debug &quot;FLUSH ==========&gt; #{@output_type}&quot;
121
112
  if (@output_type == :blank) then
122
- @output &lt;&lt; "\n"
113
+ @output &lt;&lt; &quot;\n&quot;
123
114
  elsif (@buffer.length &gt; 0) then
124
115
  if @cancel_modifier then
125
- @output &lt;&lt; "p. " if @output_type == :paragraph
116
+ @output &lt;&lt; &quot;p. &quot; if @output_type == :paragraph
126
117
  @cancel_modifier = false
127
118
  end
128
119
  @output &lt;&lt; @paragraph_modifier if (@paragraph_modifier and not sticky_modifier?)
129
- @output &lt;&lt; @buffer.textile_substitution &lt;&lt; "\n"
120
+ @output &lt;&lt; @buffer.textile_substitution &lt;&lt; &quot;\n&quot;
130
121
  end
131
- @buffer = ""
122
+ @buffer = &quot;&quot;
132
123
  end
133
124
  </pre>
134
125
  </li>
@@ -1,46 +1,42 @@
1
- <h1>Matrixy</h1>
1
+ <h1 id="Matrixy">Matrixy</h1>
2
2
 
3
- <h2>INTRODUCTION</h2>
3
+ <h2 id="INTRODUCTION">INTRODUCTION</h2>
4
4
 
5
5
  <p>This is a port of the MATLAB/Octave programming language to Parrot. See the ROADMAP file for more information on the status of this project, and what else needs to be done.</p>
6
6
 
7
- <h2>ABOUT</h2>
7
+ <h2 id="ABOUT">ABOUT</h2>
8
8
 
9
9
  <p>Primary goals are:</p>
10
10
 
11
11
  <ul>
12
12
 
13
- <li>
14
- <p>Create a working compiler that understands the majority of the MATLAB/Octave programming language.</p>
13
+ <li><p>Create a working compiler that understands the majority of the MATLAB/Octave programming language.</p>
15
14
 
16
15
  </li>
17
16
  </ul>
18
17
 
19
- <h2>IMPLEMENTATION</h2>
18
+ <h2 id="IMPLEMENTATION">IMPLEMENTATION</h2>
20
19
 
21
20
  <p>This project is broken into three primary components:</p>
22
21
 
23
22
  <ul>
24
23
 
25
- <li>
26
- <p>The first is the parser, located in the <code>src/parser/</code> directory. The parser proper is composed of three source files, <i>grammar.pg</i> which is a Perl6Grammar file, and <i>actions.pm</i> which is the associated actions file written in NQP, and <i>grammar-oper.pm</i> which is the operator precedence parser. In addition, several helper functions used by the parser are located in <code>src/internals</code>.</p>
24
+ <li><p>The first is the parser, located in the <code>src/parser/</code> directory. The parser proper is composed of three source files, <i>grammar.pg</i> which is a Perl6Grammar file, and <i>actions.pm</i> which is the associated actions file written in NQP, and <i>grammar-oper.pm</i> which is the operator precedence parser. In addition, several helper functions used by the parser are located in <code>src/internals</code>.</p>
27
25
 
28
26
  </li>
29
- <li>
30
- <p>The second component is the library of builtin functions in the <code>src/builtins/</code> directory. These functions are, currently, written primarily in PIR. Function names prefixed with an underscore are "private" functions for use with the parser. Other functions should have names which are the same as names for regular MATLAB or Octave functions, since they will be available to the HLL. These are also separated into different namespaces depending on visibility and utility.</p>
27
+ <li><p>The second component is the library of builtin functions in the <code>src/builtins/</code> directory. These functions are, currently, written primarily in PIR. Function names prefixed with an underscore are &quot;private&quot; functions for use with the parser. Other functions should have names which are the same as names for regular MATLAB or Octave functions, since they will be available to the HLL. These are also separated into different namespaces depending on visibility and utility.</p>
31
28
 
32
29
  </li>
33
- <li>
34
- <p>A number of library functions are written in M, or mostly M with some inline PIR code in <code>toolbox/</code>.</p>
30
+ <li><p>A number of library functions are written in M, or mostly M with some inline PIR code in <code>toolbox/</code>.</p>
35
31
 
36
32
  </li>
37
33
  </ul>
38
34
 
39
- <h2>DEPENDENCIES</h2>
35
+ <h2 id="DEPENDENCIES">DEPENDENCIES</h2>
40
36
 
41
37
  <p>Matrixy depends on these dependencies:</p>
42
38
 
43
- <h3>Parrot</h3>
39
+ <h3 id="Parrot">Parrot</h3>
44
40
 
45
41
  <p>To get a proper version of Parrot to build Matrixy, you will need to check out and build Parrot from source:</p>
46
42
 
@@ -49,28 +45,28 @@ cd parrot
49
45
  perl Configure.pl
50
46
  make &amp;&amp; make test &amp;&amp; make install-dev</code></pre>
51
47
 
52
- <h3>Parrot-Linear-Algebra</h3>
48
+ <h3 id="Parrot-Linear-Algebra">Parrot-Linear-Algebra</h3>
53
49
 
54
50
  <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>
55
51
 
56
- <h2>BUILDING</h2>
52
+ <h2 id="BUILDING">BUILDING</h2>
57
53
 
58
54
  <p>Once all dependencies are in place, you can build Matrixy using this sequence of commands:</p>
59
55
 
60
56
  <pre><code>perl Configure.pl
61
57
  nmake test</code></pre>
62
58
 
63
- <h2>TODO</h2>
59
+ <h2 id="TODO">TODO</h2>
64
60
 
65
61
  <pre><code>* Parser
66
62
  * Standard Builtins
67
63
  * Test against Octave Test Suite.</code></pre>
68
64
 
69
- <h2>BUGS</h2>
65
+ <h2 id="BUGS">BUGS</h2>
70
66
 
71
67
  <p>Lots!</p>
72
68
 
73
- <h2>CONTACT</h2>
69
+ <h2 id="CONTACT">CONTACT</h2>
74
70
 
75
71
  <p>If you need to contact the Matrixy team, go to the project home page at:</p>
76
72
 
@@ -1,12 +1,9 @@
1
- <ul>
2
- <li>
1
+ <ul><li>
3
2
  <p>One</p>
4
- </li>
5
- <li>
3
+ </li><li>
6
4
  <p>Two</p>
7
- </li>
8
- </ul>
5
+ </li></ul>
9
6
 
10
7
  <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
8
 
12
- <p>This is a <a href="rawr.html">relative link</a>. So is this: <a href="rawr.html">rawr.html</a></p>
9
+ <p>This is a <a>relative link</a>. So is this: <a>rawr.html</a></p>
@@ -1,16 +1,16 @@
1
1
  <h1>Header 1</h1>
2
- <h2>Subtitle</h2>
2
+ <h2 id="subtitle">Subtitle</h2>
3
3
  <p>Example text.</p>
4
- <div>
4
+ <div id="table-of-contents">
5
5
  <p><a href="#top">Table of Contents</a></p>
6
6
  <ul>
7
- <li><a href="#header-2">Header 2</a></li>
8
- <li><a href="#field-list">Field list</a></li>
7
+ <li><a href="#header-2" id="id1">Header 2</a></li>
8
+ <li><a href="#field-list" id="id2">Field list</a></li>
9
9
  </ul>
10
10
  </div>
11
11
  <a name="header-2"></a>
12
12
  <a name="label-for-header-2"></a>
13
- <h2><a href="#toc-entry-1">Header 2</a></h2>
13
+ <h2><a href="#id1">Header 2</a></h2>
14
14
  <ol>
15
15
  <li>Blah blah <code>code</code> blah</li>
16
16
  <li>More <code>code</code>, hooray</li>
@@ -19,42 +19,34 @@
19
19
  </ol>
20
20
  <p>The UTF-8 quote character in this table used to cause python to go boom. Now docutils just silently ignores it.</p>
21
21
  <table>
22
- Things that are Awesome (on a scale of 1-11)
22
+ <caption>Things that are Awesome (on a scale of 1-11)</caption>
23
23
 
24
24
 
25
25
 
26
26
 
27
27
  <tbody valign="top">
28
- <tr>
29
- <td>Thing</td>
28
+ <tr><td>Thing</td>
30
29
  <td>Awesomeness</td>
31
30
  </tr>
32
- <tr>
33
- <td>Icecream</td>
31
+ <tr><td>Icecream</td>
34
32
  <td>7</td>
35
33
  </tr>
36
- <tr>
37
- <td>Honey Badgers</td>
34
+ <tr><td>Honey Badgers</td>
38
35
  <td>10.5</td>
39
36
  </tr>
40
- <tr>
41
- <td>Nickelback</td>
37
+ <tr><td>Nickelback</td>
42
38
  <td>-2</td>
43
39
  </tr>
44
- <tr>
45
- <td>Iron Man</td>
40
+ <tr><td>Iron Man</td>
46
41
  <td>10</td>
47
42
  </tr>
48
- <tr>
49
- <td>Iron Man 2</td>
43
+ <tr><td>Iron Man 2</td>
50
44
  <td>3</td>
51
45
  </tr>
52
- <tr>
53
- <td>Tabular Data</td>
46
+ <tr><td>Tabular Data</td>
54
47
  <td>5</td>
55
48
  </tr>
56
- <tr>
57
- <td>Made up ratings</td>
49
+ <tr><td>Made up ratings</td>
58
50
  <td>11</td>
59
51
  </tr>
60
52
  </tbody>
@@ -82,24 +74,19 @@ python.code('hello world')
82
74
 
83
75
 
84
76
  <tbody valign="top">
85
- <tr>
86
- <td>Travis</td>
77
+ <tr><td>Travis</td>
87
78
  <td><a href="http://travis-ci.org/tony/pullv">http://travis-ci.org/tony/pullv</a></td>
88
79
  </tr>
89
- <tr>
90
- <td>Docs</td>
80
+ <tr><td>Docs</td>
91
81
  <td><a href="http://pullv.rtfd.org">http://pullv.rtfd.org</a></td>
92
82
  </tr>
93
- <tr>
94
- <td>API</td>
83
+ <tr><td>API</td>
95
84
  <td><a href="http://pullv.readthedocs.org/en/latest/api.html">http://pullv.readthedocs.org/en/latest/api.html</a></td>
96
85
  </tr>
97
- <tr>
98
- <td>Issues</td>
86
+ <tr><td>Issues</td>
99
87
  <td><a href="https://github.com/tony/pullv/issues">https://github.com/tony/pullv/issues</a></td>
100
88
  </tr>
101
- <tr>
102
- <td>Source</td>
89
+ <tr><td>Source</td>
103
90
  <td><a href="https://github.com/tony/pullv">https://github.com/tony/pullv</a></td>
104
91
  </tr>
105
92
  </tbody>
@@ -109,31 +96,23 @@ python.code('hello world')
109
96
  </a>
110
97
  <img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
111
98
  <a name="field-list"></a>
112
- <h2><a href="#toc-entry-2">Field list</a></h2>
99
+ <h2><a href="#id2">Field list</a></h2>
113
100
  <table frame="void" rules="none">
114
101
 
115
102
 
116
103
  <tbody valign="top">
117
104
  <tr><th colspan="2">123456789 123456789 123456789 123456789 123456789 1:</th></tr>
118
- <tr>
119
- <td> </td>
120
- <td>Uh-oh! This name is too long!</td>
105
+ <tr><td>&nbsp;</td><td>Uh-oh! This name is too long!</td>
121
106
  </tr>
122
- <tr>
123
- <th>123456789 123456789 123456789 123456789 1234567890:</th>
124
- <td>this is a long name,
107
+ <tr><th>123456789 123456789 123456789 123456789 1234567890:</th><td>this is a long name,
125
108
  but no problem!</td>
126
109
  </tr>
127
- <tr>
128
- <th>123456789 12345:</th>
129
- <td>this is not so long, but long enough for the default!</td>
110
+ <tr><th>123456789 12345:</th><td>this is not so long, but long enough for the default!</td>
130
111
  </tr>
131
- <tr>
132
- <th>123456789 1234:</th>
133
- <td>this should work even with the default :)</td>
112
+ <tr><th>123456789 1234:</th><td>this should work even with the default :)</td>
134
113
  </tr>
135
114
  </tbody>
136
115
  </table>
137
- <p><a href="mailto:someone@somewhere.org">someone@somewhere.org</a></p>
116
+ <p><a href="mailto:someone@somewhere.org">someone&#64;somewhere.org</a></p>
138
117
  <p>Press <kbd>Ctrl+C</kbd> to quit</p>
139
- <p><strong>RAW HTML!</strong></p> p {color:blue;}
118
+ <p><strong>RAW HTML!</strong></p>
@@ -13,24 +13,19 @@
13
13
 
14
14
 
15
15
  <tbody valign="top">
16
- <tr>
17
- <td>Travis</td>
16
+ <tr><td>Travis</td>
18
17
  <td><a href="http://travis-ci.org/tony/pullv">http://travis-ci.org/tony/pullv</a></td>
19
18
  </tr>
20
- <tr>
21
- <td>Docs</td>
19
+ <tr><td>Docs</td>
22
20
  <td><a href="http://pullv.rtfd.org">http://pullv.rtfd.org</a></td>
23
21
  </tr>
24
- <tr>
25
- <td>API</td>
22
+ <tr><td>API</td>
26
23
  <td><a href="http://pullv.readthedocs.org/en/latest/api.html">http://pullv.readthedocs.org/en/latest/api.html</a></td>
27
24
  </tr>
28
- <tr>
29
- <td>Issues</td>
25
+ <tr><td>Issues</td>
30
26
  <td><a href="https://github.com/tony/pullv/issues">https://github.com/tony/pullv/issues</a></td>
31
27
  </tr>
32
- <tr>
33
- <td>Source</td>
28
+ <tr><td>Source</td>
34
29
  <td><a href="https://github.com/tony/pullv">https://github.com/tony/pullv</a></td>
35
30
  </tr>
36
31
  </tbody>
@@ -1,16 +1,14 @@
1
1
  <h1>Document Title</h1>
2
- <div>
3
- <div>Contents</div>
2
+ <div id="toc">
3
+ <div id="toctitle">Contents</div>
4
4
  <ul>
5
- <li>
6
- <a href="#section-a">Section A</a>
5
+ <li><a href="#section-a">Section A</a>
7
6
  <ul>
8
7
  <li><a href="#subsection-a-1">Subsection A-1</a></li>
9
8
  <li><a href="#subsection-a-2">Subsection A-2</a></li>
10
9
  </ul>
11
10
  </li>
12
- <li>
13
- <a href="#section-b">Section B</a>
11
+ <li><a href="#section-b">Section B</a>
14
12
  <ul>
15
13
  <li><a href="#subsection-b-1">Subsection B-1</a></li>
16
14
  <li><a href="#subsection-b-2">Subsection B-2</a></li>
@@ -19,27 +17,27 @@
19
17
  </ul>
20
18
  </div>
21
19
  <div>
22
- <h2>Section A</h2>
20
+ <h2 id="section-a">Section A</h2>
23
21
  <div>
24
22
  <div>
25
- <h3>Subsection A-1</h3>
23
+ <h3 id="subsection-a-1">Subsection A-1</h3>
26
24
 
27
25
  </div>
28
26
  <div>
29
- <h3>Subsection A-2</h3>
27
+ <h3 id="subsection-a-2">Subsection A-2</h3>
30
28
 
31
29
  </div>
32
30
  </div>
33
31
  </div>
34
32
  <div>
35
- <h2>Section B</h2>
33
+ <h2 id="section-b">Section B</h2>
36
34
  <div>
37
35
  <div>
38
- <h3>Subsection B-1</h3>
36
+ <h3 id="subsection-b-1">Subsection B-1</h3>
39
37
 
40
38
  </div>
41
39
  <div>
42
- <h3>Subsection B-2</h3>
40
+ <h3 id="subsection-b-2">Subsection B-2</h3>
43
41
 
44
42
  </div>
45
43
  </div>
@@ -1,23 +1,22 @@
1
- <div>
1
+ <div id="contents">
2
2
  <p><a href="#top">Contents</a></p>
3
3
  <ul>
4
- <li>
5
- <a href="#introduction">1   Introduction</a><ul>
6
- <li><a href="#what-is-pycparser">1.1   What is pycparser?</a></li>
7
- <li><a href="#what-is-it-good-for">1.2   What is it good for?</a></li>
4
+ <li><a href="#introduction" id="id1">1&nbsp;&nbsp;&nbsp;Introduction</a><ul>
5
+ <li><a href="#what-is-pycparser" id="id2">1.1&nbsp;&nbsp;&nbsp;What is pycparser?</a></li>
6
+ <li><a href="#what-is-it-good-for" id="id3">1.2&nbsp;&nbsp;&nbsp;What is it good for?</a></li>
8
7
  </ul>
9
8
  </li>
10
9
  </ul>
11
10
  </div>
12
11
  <a name="introduction"></a>
13
- <h2>1   Introduction</h2>
12
+ <h2>1&nbsp;&nbsp;&nbsp;Introduction</h2>
14
13
  <a name="what-is-pycparser"></a>
15
- <h3>1.1   What is pycparser?</h3>
14
+ <h3>1.1&nbsp;&nbsp;&nbsp;What is pycparser?</h3>
16
15
  <p><strong>pycparser</strong> is a parser for the C language, written in pure Python. It is a
17
16
  module designed to be easily integrated into applications that need to parse
18
17
  C source code.</p>
19
18
  <a name="what-is-it-good-for"></a>
20
- <h3>1.2   What is it good for?</h3>
19
+ <h3>1.2&nbsp;&nbsp;&nbsp;What is it good for?</h3>
21
20
  <p>Anything that needs C code to be parsed. The following are some uses for
22
21
  <strong>pycparser</strong>, taken from real user reports:</p>
23
22
  <ul>
@@ -0,0 +1,29 @@
1
+ require "simplecov"
2
+
3
+ SimpleCov.start do
4
+ enable_coverage :branch
5
+ add_filter "/test/"
6
+ add_filter "/spec/"
7
+ add_filter "/features/"
8
+ track_files "lib/**/*.rb"
9
+ command_name "MarkupTests"
10
+ minimum_coverage line: 100, branch: 100
11
+ end
12
+
13
+ module ConstantStubbing
14
+ private
15
+
16
+ def with_stub_const(path, value)
17
+ parts = path.split("::")
18
+ name = parts.pop
19
+ parent = parts.inject(Object) { |mod, part| mod.const_get(part) }
20
+ had_const = parent.const_defined?(name, false)
21
+ original = parent.const_get(name) if had_const
22
+ parent.send(:remove_const, name) if had_const
23
+ parent.const_set(name, value)
24
+ yield
25
+ ensure
26
+ parent.send(:remove_const, name) if parent.const_defined?(name, false)
27
+ parent.const_set(name, original) if had_const
28
+ end
29
+ end