From bf2b3a119c7d5a1ba6cd4e1bd1bacf8826313381 Mon Sep 17 00:00:00 2001
From: Yusuke Matsubara
Date: Wed, 11 Jun 2014 21:58:01 +0900
Subject: [PATCH] Update WikiCloth to 0.8.1 and support footnotes
---
Gemfile | 2 +-
test/markups/README.mediawiki | 5 +++-
test/markups/README.mediawiki.html | 48 +++++++++++++++++-------------
3 files changed, 32 insertions(+), 23 deletions(-)
diff --git a/Gemfile b/Gemfile
index a35eac1c..84233326 100644
--- a/Gemfile
+++ b/Gemfile
@@ -5,6 +5,6 @@ gem "RedCloth"
gem "rdoc", "~>3.6"
gem "org-ruby", "= 0.9.1.gh"
gem "creole", "~>0.3.6"
-gem "wikicloth", "=0.6.0"
+gem "wikicloth", "=0.8.1"
gem "asciidoctor", "= 0.1.4"
gem "rake"
diff --git a/test/markups/README.mediawiki b/test/markups/README.mediawiki
index f7c394cd..36c3ef6b 100644
--- a/test/markups/README.mediawiki
+++ b/test/markups/README.mediawiki
@@ -21,4 +21,7 @@ For projects requiring multiple scripting languages, JSR223 is a good fit. Thoug
The full [http://jruby-embed.kenai.com/docs/ API documentation] has all the gory details. It's worth talking about a couple of the finer points here.
= Previous Embedding JRuby Page=
-We recommend using Embed Core; however, if you're maintaining code that uses the old API, you can find its documentation on the [[JavaIntegration|legacy embedding]] page.
\ No newline at end of file
+We recommend using Embed Core; however, if you're maintaining code that uses the old API, you can find its documentation on the [[JavaIntegration|legacy embedding]][This link goes nowhere.] page.
+
+= References =
+
diff --git a/test/markups/README.mediawiki.html b/test/markups/README.mediawiki.html
index e8400592..a84d3d7b 100644
--- a/test/markups/README.mediawiki.html
+++ b/test/markups/README.mediawiki.html
@@ -1,35 +1,41 @@
-
-» JRuby Project Wiki Home Page
+
» JRuby Project Wiki Home Page
Embedding JRuby
-
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.
+
+
+
+
+Red Bridge (JRuby Embed)
-
-
-
-
Red Bridge (JRuby Embed)
-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 legacy API should still work, but we strongly recommend Red Bridge for all new projects.
+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 legacy API should still work, but we strongly recommend Red Bridge for all new projects.
+
+
+Features of Red Bridge
+
-
-
Features of Red Bridge
Red Bridge consists of two layers: Embed Core on the bottom, and implementations of JSR223 and BSF 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.
+Red Bridge consists of two layers: Embed Core on the bottom, and implementations of JSR223 and BSF 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.
+
+Which API should you use? For projects where Ruby is the only scripting language involved, we recommend Embed Core for the following reasons:
+
-
-Which API should you use? For projects where Ruby is the only scripting language involved, we recommend Embed Core for the following reasons:
-
-
- With Embed Core, you can create several Ruby environments in one JVM, and configure them individually (via
org.jruby.RubyInstanceConfig
. With the other APIs, configuration options can only be set globally, via the System
properties.
- - Embed Core offers several shortcuts, such as loading scripts from a
java.io.InputStream
, or returning Java-friendly objects from Ruby code. These allow you to skip a lot of boilerplate.
+- With Embed Core, you can create several Ruby environments in one JVM, and configure them individually (via
org.jruby.RubyInstanceConfig
. With the other APIs, configuration options can only be set globally, via the System
properties. - Embed Core offers several shortcuts, such as loading scripts from a
java.io.InputStream
, or returning Java-friendly objects from Ruby code. These allow you to skip a lot of boilerplate.
+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.
+
+The full API documentation has all the gory details. It's worth talking about a couple of the finer points here.
+
-
-
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.
+Previous Embedding JRuby Page
-
-The full API documentation has all the gory details. It's worth talking about a couple of the finer points here.
-
-
Previous Embedding JRuby Page
We recommend using Embed Core; however, if you're maintaining code that uses the old API, you can find its documentation on the legacy embedding page.
+We recommend using Embed Core; however, if you're maintaining code that uses the old API, you can find its documentation on the legacy embedding[1] page.
+
+References
+
+
+- ^ This link goes nowhere.
\ No newline at end of file