func main() {
md := goldmark.New()
var buf bytes.Buffer
if err := md.Convert([]byte("1.\n> This is a quote."), &buf); err != nil {
panic(err)
}
fmt.Println(buf.String())
}
6. What did you expect to see? :
```html
<ol>
<li></li>
</ol>
<blockquote>
<p>This is a quote.</p>
</blockquote>
What did you see instead? :
<ol>
<li></li>
</ol>
Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?: Yes, the online demo does correctly render this.
Additional info. If you put two newlines, it will correctly render, but it should also correctly render with one newline:
- if err := md.Convert([]byte("1.\n> This is a quote."), &buf); err != nil {
+ if err := md.Convert([]byte("1.\n\n> This is a quote."), &buf); err != nil {
What did you do? : I tried to render
1.\n> This is a quote.
, via:func main() { md := goldmark.New() var buf bytes.Buffer if err := md.Convert([]byte("1.\n> This is a quote."), &buf); err != nil { panic(err) } fmt.Println(buf.String()) }
What did you see instead? :
Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?: Yes, the online demo does correctly render this.
Additional info. If you put two newlines, it will correctly render, but it should also correctly render with one newline: