Skip to content

Commit 706307d

Browse files
committed
header-ids: avoid conflicting ids (fixes #661)
1 parent 3fe9325 commit 706307d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/markdown2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ def header_id_from_text(self,
15601560

15611561
self._count_from_header_id[header_id] += 1
15621562
if 0 == len(header_id) or self._count_from_header_id[header_id] > 1:
1563-
header_id += '-%s' % self._count_from_header_id[header_id]
1563+
header_id += ':%s' % self._count_from_header_id[header_id]
15641564

15651565
return header_id
15661566

0 commit comments

Comments
 (0)