a8m / mark

A markdown processor written in Go. built for fun.
MIT License
203 stars 16 forks source link

Set an <br> and <hr> #6

Closed nico-bock closed 6 years ago

nico-bock commented 6 years ago

What ist the common way to set a line breake <br> and a <hr>. I tried


**What's new?** /
---

* The release notes now use HTML to look friendlier
* A lot of small improvements on Courier2                                    

/There should be no visible changes for Courier 1 users.

in this code.

package main

import (
    "fmt"
    "io/ioutil"

    "github.com/a8m/mark"
)

func main() {
    markdown_text, err := ioutil.ReadFile("testdata/test3.md")
    html := mark.Render(string(markdown_text))
    fmt.Print(html, err)
}

But it dont set an <br> after two spaces or an <hr> for ---. I got this

</p>strong>Test This</strong>
</p> ---
<pre><code>
</code></pre>
<ul>
<li>Bla 1</li>
<li>Bla 2

Did it work?</li>
</ul><nil>
a8m commented 6 years ago
Headline
---

---

hello  
world

Note that there are two spaces after the word hello

a8m commented 6 years ago

Closing this issue, feel free to open if you have more comments.