Using Ménneu document processor to render the markdowns.
- Download this repository as zip archive, and extract it.
- Initialize the git repository on the extracted folder.
$ git init
- Copy article template from
./articles/*.html
and open from the editor you like.Article-1.html
: Normal markdown format.ScriptableArticle-1.html
: Markdown format that Lisp LSX script expansion is enabled.Notebook-1.html
: JS Notebook markdown format.- Lisp LSX script expansion is enabled.
- Preview the markdown by opening the browser.
- Save your contents and commit to the repository.
https://shellyln.github.io/menneu/playground.html
Replace *.js
URLs in the <script>
tags of ./articles/*.html
.
https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/menneu.min.js
https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/mkd+lsx.js
https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/mkd.js
https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/notebook.js
Article-1.html
<!DOCTYPE html><head><meta charset="UTF-8"></head><body><script type="text/markdown">
# Hello!
</script>
<script src="https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/mkd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/menneu.min.js" onload="start({title: 'My Notebook 1'})"></script>
</body>
ScriptableArticle-1.html
<!DOCTYPE html><head><meta charset="UTF-8"></head><body><script type="text/markdown">
# Hello!
</script>
<script src="https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/mkd+lsx.js"></script>
<script src="https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/menneu.min.js" onload="start({title: 'My Notebook 1'})"></script>
</body>
Notebook-1.html
<!DOCTYPE html><head><meta charset="UTF-8">
<!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.13.0"></script> -->
</head><body><script type="text/markdown">
# JS Notebook
%%%(script (@ (src "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML") (crossorigin "anonymous") (async)))
</script>
<script src="https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/notebook.js"></script>
<script src="https://cdn.jsdelivr.net/npm/menneu-md-notebook@0.0.14/articles/js/menneu.min.js" onload="start({title: 'My Notebook 1'})"></script>
</body>
- To save the repository size, move
articles/js/menneu.min.js
andarticles/js/menneu.min.js.map
outside the repository. - You should escape some characters if script expansion is enabled.
See this document.
ISC
Copyright (c) 2018, Shellyl_N and Authors.