view test.md @ 6:a5f397e25cb7

Add ability to render the markdown inside a template
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 16 Jun 2020 22:10:31 +0200
parents 534fa4c6668e
children a5aa39557726
line wrap: on
line source

# 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)
}
```

## 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
 - [ ] Add possibility to have YAML metadata

### 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