More advanced than Markdown, simpler than LaTeX
It should be:
- simple and easy to remember
- easy to read in it's raw form, no clutter
- prevent problems as much as possible
- special codes used should be uniform
- geared towards books/articles/pdf
This is a library that converts wmu to html.
Note this repository is a proof-of-concept / prototype! It is not ready yet for its first beta release!!! There are still many things that need to be finished, figured out or rewriten.
Read the quick introduction to get an idea of wmu markup
- using JS find and replace is fast but doesn't result in clean/solid code
- started as proof-of-concept js code, so it's not really clean and solid everywhere (yet!)
- i am still figuring out what wmu should be like, so some code is a bit experimetal/temporary
- css files are also just to make it work and/or temporary
> npm install
> npm run build
Then open /examples/demo/demo.html in your browser!
Open in VS Code and run (F5)
https://www.npmjs.com/package/graceful-fs
Render books using (CSS) Paged Media
https://www.pagedjs.org/documentation/02-getting-started-with-paged-js/#starting-pagedjs
https://github.com/pagedjs/pagedjs
https://www.pagedmedia.org/paged-js/
Support for JSON blocks
https://lihautan.com/json-parser-with-javascript/
For instance:
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams
https://github.com/mermaid-js/mermaid
https://www.diagram.codes/ (commercial)
https://modeling-languages.com/text-uml-tools-complete-list/
| folder | ||
|---|---|---|
/src/ |
source files (ts) | |
/dist/es5/ |
output of tsc | ES5 |
/dist/lib/ |
output of webpack | umd for browser (CommonJS, AMD, global variable) |
/dist/lib_esm/ |
output of tsc (-m es6)/lib-esm | ES6/ES2015 |
- when using a project file, copy .css files to project folder
- |config:
type=webandtype=book |cover> npx wmu --watch- not only return html, but also errors and warnings
- alternatieve-regex.js
- in latex
{\"o}is automatically converted toö - todo: inline en block list?!
- todo: markdown compatability?
- adding |toc -> set createtoc to true
- output list of all used css classes
- footnotes, chapter endnotes, book endnotes
- footnote: -> note
- unescape inline markup etc. (for writing about wmu)
- escape all characters
- escape blocks: |par |code
- idee: title en daarna paragraaf tekst -> markdown-header-3
- soms nog 'var' ipv 'let'?
- ts: return types van function ed
- ook css met webpack naar /dist/: https://webpack.js.org/loaders/css-loader/