Added examples for org-mode and markdown#280
Added examples for org-mode and markdown#280lambda-knight wants to merge 2 commits intoviebel:masterfrom
Conversation
|
Hi @lambda-knight I copied the org example and it works perfectly with org html export. I pulled down the markdown example and I believe you need the selector to be |
| (map inc '(1 2 3 4 5 6 7 8 9 10)) | ||
| ``` | ||
|
|
||
| <script type="text/javascript">window.klipse_settings = {selector: '.lang-clj'};</script> |
There was a problem hiding this comment.
'.lang-clj' => '.language-clj', otherwise it worked great!
|
I modified docs/examples/clojure-example.md. Please check it ! |
| @@ -0,0 +1,10 @@ | |||
| <link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css" /> | |||
|
|
|||
| # sample Clojure code | |||
There was a problem hiding this comment.
@lambda-knight
Sorry for the late reply.
Can you share the cli command you run in order to generate the html file?
I tried to use marked but it generates only the body of the html
$ marked docs/examples/clojure-example.md
<link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css" />
<h1 id="sample-clojure-code">sample Clojure code</h1>
<pre><code class="language-clj">(map inc '(1 2 3 4 5 6 7 8 9 10))</code></pre>
<script type="text/javascript">window.klipse_settings = {selector: '.language-clj'};</script>
<script src="https://storage.googleapis.com/app.klipse.tech/plugin/js/klipse_plugin.js"></script>There was a problem hiding this comment.
@lambda-knight @MageMasher Can you share the cli command you run in order to generate the html file?
| (+ x y)) | ||
| #+END_SRC | ||
|
|
||
| ** sample invoking function |

I have opened a pull request related to #278 and #279.