Mercurial > repos > public > wdown
annotate 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 |
rev | line source |
---|---|
7
a5aa39557726
Add parsing of YAML frontmatter
Jonatan Werpers <jonatan@werpers.com>
parents:
6
diff
changeset
|
1 --- |
a5aa39557726
Add parsing of YAML frontmatter
Jonatan Werpers <jonatan@werpers.com>
parents:
6
diff
changeset
|
2 title: En liten testsida |
a5aa39557726
Add parsing of YAML frontmatter
Jonatan Werpers <jonatan@werpers.com>
parents:
6
diff
changeset
|
3 tags: |
a5aa39557726
Add parsing of YAML frontmatter
Jonatan Werpers <jonatan@werpers.com>
parents:
6
diff
changeset
|
4 - markdown |
a5aa39557726
Add parsing of YAML frontmatter
Jonatan Werpers <jonatan@werpers.com>
parents:
6
diff
changeset
|
5 - goldmark |
a5aa39557726
Add parsing of YAML frontmatter
Jonatan Werpers <jonatan@werpers.com>
parents:
6
diff
changeset
|
6 --- |
a5aa39557726
Add parsing of YAML frontmatter
Jonatan Werpers <jonatan@werpers.com>
parents:
6
diff
changeset
|
7 |
0 | 8 # Rubrik |
9 Lite text måste man ha. | |
10 Och kanske en lista | |
11 * LOL | |
12 * LAL | |
13 | |
14 En [länk](www.werpers.com) är alltid trevligt | |
15 | |
16 ```golang | |
17 func hello(i int) string { | |
18 return fmt.Printf("Hello Mr. %d\n", i) | |
19 } | |
20 ``` | |
21 | |
10
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
22 ## Math is also important |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
23 What would the world be like without some of this $f(x) = x^2 + 2x + 1$ |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
24 or even this |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
25 $$ |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
26 \zeta = \frac{1}{N}\sqrt{\sum_{i=1}^N \phi_i(x)} |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
27 $$ |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
28 |
1
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
29 ## Some logic |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
30 |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
31 We also need a table |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
32 |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
33 | A | B | A or B | A and B | |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
34 |---|---|--------|---------| |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
35 | 0 | 0 | 0 | 0 | |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
36 | 0 | 1 | 1 | 0 | |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
37 | 1 | 0 | 1 | 0 | |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
38 | 1 | 1 | 1 | 1 | |
adf9c2b90279
Enable the gfm extension
Jonatan Werpers <jonatan@werpers.com>
parents:
0
diff
changeset
|
39 |
2
be229b2e3b19
Add some more stuff to test.md
Jonatan Werpers <jonatan@werpers.com>
parents:
1
diff
changeset
|
40 ## TODO |
be229b2e3b19
Add some more stuff to test.md
Jonatan Werpers <jonatan@werpers.com>
parents:
1
diff
changeset
|
41 Some things need doing |
be229b2e3b19
Add some more stuff to test.md
Jonatan Werpers <jonatan@werpers.com>
parents:
1
diff
changeset
|
42 - [x] Build the simplest possible markdown commandline utility |
5
534fa4c6668e
Add command line argument parsing
Jonatan Werpers <jonatan@werpers.com>
parents:
3
diff
changeset
|
43 - [x] Add command-line argument parsing |
6
a5f397e25cb7
Add ability to render the markdown inside a template
Jonatan Werpers <jonatan@werpers.com>
parents:
5
diff
changeset
|
44 - [x] Allow template file as an input |
a5f397e25cb7
Add ability to render the markdown inside a template
Jonatan Werpers <jonatan@werpers.com>
parents:
5
diff
changeset
|
45 - [ ] Refactor main() to be readable |
7
a5aa39557726
Add parsing of YAML frontmatter
Jonatan Werpers <jonatan@werpers.com>
parents:
6
diff
changeset
|
46 - [x] Add possibility to have YAML metadata |
10
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
47 - [ ] Try to add music score |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
48 - [ ] Test using v8go to render the music score server side |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
49 - [ ] Try to create an extension |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
50 |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
51 ### Math |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
52 - [ ] Serve MathJax from own server. |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
53 - [ ] 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. |
1ffe6e4f933c
Add math support through MathJax
Jonatan Werpers <jonatan@werpers.com>
parents:
7
diff
changeset
|
54 - [ ] Revisit the branch `javascript-experiment` and see if it's possible to get rid of the extra characters rendered by _katex_. |
3 | 55 |
56 ### Code highlighting | |
57 - [ ] Check of other highlighters use the same kind of coloring idea | |
58 - [ ] Check how to style the code coloring | |
59 - [ ] Switch to CSS-class based code coloring | |
60 - [ ] Configure highlighter | |
61 | |
62 ### Community | |
63 - [ ] Fix errors in [goldmark-highlighting README](https://github.com/yuin/goldmark-highlighting) | |
64 - [ ] Faulty import | |
65 - [ ] Extra import chroma/formatters/html |