{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import os\n", "from IPython.display import HTML\n", "\n", "import ezmarkdown as md" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "\n", " \n", "
ezmarkdown
to create standalone HTML documentspip install ezmarkdown
Native HTML sample
\n", "\n", "Les sanglots longs
\n",
"Des violons
\n",
"De l'automne
\n",
"Blessent mon cœur
\n",
"D'une langueur
\n",
"Monotone.
Tout suffocant
\n",
"Et blême, quand
\n",
"Sonne l'heure,
\n",
"Je me souviens
\n",
"Des jours anciens
\n",
"Et je pleure
Et je m'en vais
\n",
"Au vent mauvais
\n",
"Qui m'emporte
\n",
"Deçà, delà,
\n",
"Pareil à la
\n",
"Feuille morte.
A mathjax expression, by default left-aligned.\n", "$$\n", "\\frac{n!}{k!(n-k)!} = \\binom{n}{k}\n", "$$
\n", "A mathjax expression, centered.\n", "
A mathjax expression, right-aligned.\n", "
Here is a list of items :
\n", "\n", "\n", "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
\n", "
A centered table\n", "
Header 1 | \n", "Header 2 | \n", "
---|---|
Cell 1 | \n",
"Cell 2 link | \n", "
Cell 3 | \n", "Cell 4 | \n", "
Another table, left-aligned by default.\n", "See how the mathjax expression can be left-aligned or centered in a table cell.
\n", "title1 | \n", "title2 | \n", "
---|---|
\n", " | $$\\frac{n!}{k!(n-k)!} = \\binom{n}{k}$$ | \n", "
\n", " | $$\\frac{n!}{k!(n-k)!} = \\binom{n}{k}$$ | \n",
"
\n", " | \n", " |
Native HTML sample
\n", "\n", "##Caractères avec accents \n", "+ Un poème de Paul Verlaine \n", "\n", "Les sanglots longs \n", "Des violons \n", "De l'automne \n", "Blessent mon cœur \n", "D'une langueur \n", "Monotone. \n", "\n", "Tout suffocant \n", "Et blême, quand \n", "Sonne l'heure, \n", "Je me souviens \n", "Des jours anciens \n", "Et je pleure \n", "\n", "Et je m'en vais \n", "Au vent mauvais \n", "Qui m'emporte \n", "Deçà, delà, \n", "Pareil à la \n", "Feuille morte. \n", "\n", "+ Autre example: çà avec accent, symbole de l'Euro €\n", "+ Et aussi équations Latex inline $\\mu$ ou encore $e^{i\\pi}=-1$\n", "\n", "##Multi line Latex examples\n", "\n", "A mathjax expression, by default left-aligned.\n", "$$\n", "\\frac{n!}{k!(n-k)!} = \\binom{n}{k}\n", "$$\n", "\n", "A mathjax expression, centered.\n", "