view test.md @ 7:a5aa39557726

Add parsing of YAML frontmatter
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 17 Jun 2020 12:23:56 +0200
parents a5f397e25cb7
children 1ffe6e4f933c
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)
}
```

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

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