commit 879456e9917df90e1fcc211ed53c9ff6b2f9020f parent 284083ed6ef4c47377aa16a6ec3220d36cdf1816 Author: Léo Villeveygoux <l@vgx.fr> Date: Fri, 18 Dec 2020 03:13:00 +0100 Possibilité d'utiliser ça sur une sortie Markdown Diffstat:
A | headers.html | | | 11 | +++++++++++ |
A | markdowntest.md | | | 15 | +++++++++++++++ |
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/headers.html b/headers.html @@ -0,0 +1,11 @@ +<link rel="stylesheet" type="text/css" href="styles/breditor.css" /> +<script src="lib/brython.js"></script> +<script src="lib/brython_stdlib.js"></script> +<script src="lib/ace/ace.js"></script> +<script src="lib/ace/mode-python.js"></script> +<script type="text/python" src="lib/breditor.py"></script> + +<script type="text/javascript"> + window.addEventListener('load', brython); +</script> + diff --git a/markdowntest.md b/markdowntest.md @@ -0,0 +1,15 @@ +--- +title: test +--- + +<!-- Compile with: pandoc markdowntest.md -H headers.html -o markdowntest.html --> + +~~~{#ed1 .breditor} +from browser import alert +alert("Hello !") +~~~ + +~~~{#ed2 .breditor} +from browser import alert +alert("Bonjour !") +~~~