mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-15 15:53:55 +01:00
feat: rewrite render
This commit is contained in:
parent
5fbee517fe
commit
7308eecaf3
10 changed files with 352 additions and 198 deletions
25
pkg/md/md_test.go
Normal file
25
pkg/md/md_test.go
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package md
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestList(t *testing.T) {
|
||||
l := List(
|
||||
Text("foo"),
|
||||
Text("bar"),
|
||||
List(
|
||||
Text("baz"),
|
||||
Text("bing"),
|
||||
),
|
||||
Text("boing"),
|
||||
).String()
|
||||
|
||||
assert.Equal(t, `* foo
|
||||
* bar
|
||||
* baz
|
||||
* bing
|
||||
* boing`, l)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue