Skip to content

Instantly share code, notes, and snippets.

@memeplex
Last active December 21, 2015 12:59
Show Gist options
  • Save memeplex/6309540 to your computer and use it in GitHub Desktop.
Save memeplex/6309540 to your computer and use it in GitHub Desktop.
A strapdown template with: 1. support for utf8 charset // 2. (optional, i.e. commented out) support for mathjax (with configuration for ascimath which I believe is a kindred spirit to markdown) // 3. fix for bootstrap not honouring table alignment // BTW I can't believe this description is not markdown itself.
<html>
<head>
<title>Title here</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style> /* https://github.com/arturadib/strapdown/issues/25 */
td[align=right] { text-align: right !important; }
td[align=center] { text-align: center !important; }
td[align=left] { text-align: left !important; }
</style>
</head>
<body>
<xmp theme="slate" style="display:none;">
Content here (o también "Contenido aquí" por cortesía de utf8)
</xmp>
<script src="http://strapdownjs.com/v/0.2/strapdown.js"></script>
<!-- MathJax support & configuration
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript">
MathJax.Hub.Config({
jax: ["input/TeX","input/AsciiMath"],
extensions: ["asciimath2jax.js"],
tex2jax: { displayMath: [["$$","$$"]], inlineMath: [["%%","%%"]] },
asciimath2jax: { delimiters: [["$","$"]] }
})
</script>
-->
</body>
</html>
@bsamadi
Copy link

bsamadi commented Feb 27, 2014

There is a conflict between markdown and mathjax. For example:
$\frac{R_a T_{im}}{V_{im}}$
includes a T that is seen as italic{a T}

@zTrix
Copy link

zTrix commented May 12, 2014

Hi, I've forked strapdown and solved this issue at https://github.com/zTrix/strapdown

demo: http://strapdown.ztx.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment