diff --git a/_test/extra.txt b/_test/extra.txt
new file mode 100644
index 0000000..70570b5
--- /dev/null
+++ b/_test/extra.txt
@@ -0,0 +1,10 @@
+1
+//- - - - - - - - -//
+* A
+ B
+//- - - - - - - - -//
+
+//= = = = = = = = = = = = = = = = = = = = = = = =//
diff --git a/extra_test.go b/extra_test.go
new file mode 100644
index 0000000..e2548b2
--- /dev/null
+++ b/extra_test.go
@@ -0,0 +1,15 @@
+package goldmark
+
+import (
+ "testing"
+
+ "github.com/yuin/goldmark/renderer/html"
+)
+
+func TestDefinitionList(t *testing.T) {
+ markdown := New(WithRendererOptions(
+ html.WithXHTML(),
+ html.WithUnsafe(),
+ ))
+ DoTestCaseFile(markdown, "_test/extra.txt", t)
+}
diff --git a/parser/list.go b/parser/list.go
index c88fd60..a180400 100644
--- a/parser/list.go
+++ b/parser/list.go
@@ -83,7 +83,7 @@ func calcListOffset(source []byte, match [6]int) int {
if util.IsBlank(source[match[4]:]) { // list item starts with a blank line
offset = 1
} else {
- offset, _ = util.IndentWidth(source[match[4]:], match[2])
+ offset, _ = util.IndentWidth(source[match[4]:], match[4])
if offset > 4 { // offseted codeblock
offset = 1
}