-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added examples for org-mode and markdown #280
base: master
Are you sure you want to change the base?
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 |
docs/examples/clojure-example.md
Outdated
(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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'.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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have opened a pull request related to #278 and #279.