Skip to content

Commit b3900b8

Browse files
committed
ignore newline to start a key
1 parent ab8e4d7 commit b3900b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wikifier/block-map.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func (m *Map) handleChar(page *Page, i int, p *mapParser, c rune) {
287287
// this is part of the key
288288

289289
// starting a new key
290-
if p.key == nil {
290+
if p.key == nil && add != "\n" {
291291
p.startPos = p.pos
292292
p.key = add
293293
return

0 commit comments

Comments
 (0)