[DRE-commits] [ruby-org] 263/303: Add test for raw html input when using #+html in line.

Jérémy Bobbio lunar at alioth.debian.org
Fri Aug 9 17:34:10 UTC 2013


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-org.

commit 704b09b7b440cbf7ee650bbc96243eaacf0a789d
Author: Waldemar Quevedo <waldemar.quevedo at gmail.com>
Date:   Sun Feb 3 18:59:19 2013 +0900

    Add test for raw html input when using #+html in line.
---
 spec/html_examples/raw-html.html |   12 ++++++++++++
 spec/html_examples/raw-html.org  |   23 +++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/spec/html_examples/raw-html.html b/spec/html_examples/raw-html.html
new file mode 100644
index 0000000..1c97d11
--- /dev/null
+++ b/spec/html_examples/raw-html.html
@@ -0,0 +1,12 @@
+<h1>Raw html can be embedded</h1>
+<p>The following will render the tag as is:</p>
+<code> Hello </code>
+<p>And this will render some Javascript:</p>
+<script> alert('hello') </script>
+<h2>HTML blocks</h2>
+<p>Unsupported for now, they behave as follows:</p>#+begin_html
+  <p><p style=”color:#cafe12; background-color:#999999”>
+    <pre></p>
+  <p>Hello.</p>
+  <p></pre>
+    </p></p>#+end_html
diff --git a/spec/html_examples/raw-html.org b/spec/html_examples/raw-html.org
new file mode 100644
index 0000000..4a9332f
--- /dev/null
+++ b/spec/html_examples/raw-html.org
@@ -0,0 +1,23 @@
+* Raw html can be embedded
+
+The following will render the tag as is:
+
+#+html: <code> Hello </code>
+
+And this will render some Javascript:
+
+#+html: <script> alert('hello') </script>
+
+** HTML blocks
+
+Unsupported for now, they behave as follows:
+
+#+begin_html
+<p style="color:#cafe12; background-color:#999999">
+<pre>
+
+Hello.
+
+</pre>
+</p>
+#+end_html

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git



More information about the Pkg-ruby-extras-commits mailing list