GithubHelp home page GithubHelp logo

MathJax about cryogen HOT 5 CLOSED

cryogen-project avatar cryogen-project commented on June 12, 2024
MathJax

from cryogen.

Comments (5)

Jesse-Millwood avatar Jesse-Millwood commented on June 12, 2024 1

Turns out that if you include

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']],
                       displayMath: [['\\[','\\]'], ['$$','$$']]}});
 </script>
 <script type="text/javascript"
      src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
 </script>

to the head tag in /resources/templates/html/base.html you can use MathJax in line or as separate centered equations inside of the markdown files

from cryogen.

yogthos avatar yogthos commented on June 12, 2024

At the moment it looks like the syntax is not compatible with the markdown parser used. It should work using the AsciiDoc syntax if you add the js in resources/templates/html/base.html

<script type="text/javascript"
  src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

from cryogen.

Jesse-Millwood avatar Jesse-Millwood commented on June 12, 2024

Thanks for the quick response!
I had tried adding it in a markdown file, makes sense why it didn't work then

from cryogen.

yogthos avatar yogthos commented on June 12, 2024

you'd have to add [cryogen-asciidoc "0.1.1"] in your project.clj under :dependencies to enable it

:dependencies [[org.clojure/clojure "1.6.0"]
                           [ring/ring-devel "1.3.2"]
                           [compojure "1.3.2"]
                           [ring-server "0.4.0"]
                           [cryogen-asciidoc "0.1.1"]
                           [cryogen-markdown "0.1.1"]
                           [cryogen-core "0.1.21"]]

Then you have to put your posts under resources/templates/asc/posts ending with the .asc extension, eg: resources/templates/asc/posts/2014-10-10-adoc-post.asc

from cryogen.

Jesse-Millwood avatar Jesse-Millwood commented on June 12, 2024

Thanks for the tip!

from cryogen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.