Mercurial > repos > public > wdown
view test.md @ 20:cb6c79b172d1
Add some more sheet music examples
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 01 Jul 2020 11:37:21 +0200 |
parents | fbdb89dc8e8c |
children | 1581b64a72a1 |
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)} $$ ## Music X: 22 M:3/4 L:1/8 Q:1/4=100 C:Paul Rosen S:Copyright 2007, Paul Rosen R:Klezmer K:Dm Ade|:"Dm"(f2d)e gf|"A7"e2^c4|"Gm"B>>^c BA BG|"A"A3Ade|"Dm"(f2d)e gf|"A7"e2^c4| "Gm"A>>B "A7"AG FE|1"Dm"D3Ade:|2"Dm"D3DEF||:"Gm"(G2D)E FG|"Dm"A2F4|"Gm"B>>c "A7"BA BG| "Dm"A3 DEF|"Gm"(G2D)EFG|"Dm"A2F4|"E°"E>>Fy "(A7)"ED^C2|1"Dm"D3DEF:|2"Dm"D6|| Nu är frågan hur det fungerar och om det är enkelt att använda X:1 M:4/4 L:1/8 K: C |:CD EF GA Bc de fg ab:| Kromatisk skala ser ut på följande sätt; X:1 M:4/4 L:1/8 K: C |:F _G G _A A _B B C _D D :| ## 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] Fix bug where there's a nil error when there is no yaml in .md file - [x] Fix bug where wdown doesn't work without a template - [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 - [ ] Fix the styles so that highlighted block have the same background as non-highlighted blocks - [ ] 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