Mercurial > repos > public > wdown
view test.md @ 10:1ffe6e4f933c
Add math support through MathJax
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 17 Jun 2020 22:13:03 +0200 |
parents | a5aa39557726 |
children | 4bcdc24edbe3 |
line wrap: on
line source
--- title: En liten testsida tags: - markdown - goldmark --- # Rubrik Lite text måste man ha. Och kanske en lista * LOL * LAL En [länk](www.werpers.com) är alltid trevligt ```golang func hello(i int) string { return fmt.Printf("Hello Mr. %d\n", i) } ``` ## Math is also important What would the world be like without some of this $f(x) = x^2 + 2x + 1$ or even this $$ \zeta = \frac{1}{N}\sqrt{\sum_{i=1}^N \phi_i(x)} $$ ## Some logic We also need a table | A | B | A or B | A and B | |---|---|--------|---------| | 0 | 0 | 0 | 0 | | 0 | 1 | 1 | 0 | | 1 | 0 | 1 | 0 | | 1 | 1 | 1 | 1 | ## TODO Some things need doing - [x] Build the simplest possible markdown commandline utility - [x] Add command-line argument parsing - [x] Allow template file as an input - [ ] Refactor main() to be readable - [x] Add possibility to have YAML metadata - [ ] Try to add music score - [ ] Test using v8go to render the music score server side - [ ] Try to create an extension ### Math - [ ] Serve MathJax from own server. - [ ] Keep investigating if it's possible to use _katex_ with _v8go_ to render math at compile time instead of realying on _MathJax_ to do it in the browser. - [ ] Revisit the branch `javascript-experiment` and see if it's possible to get rid of the extra characters rendered by _katex_. ### Code highlighting - [ ] Check of other highlighters use the same kind of coloring idea - [ ] Check how to style the code coloring - [ ] Switch to CSS-class based code coloring - [ ] Configure highlighter ### Community - [ ] Fix errors in [goldmark-highlighting README](https://github.com/yuin/goldmark-highlighting) - [ ] Faulty import - [ ] Extra import chroma/formatters/html