Skip to content

Commit a726c5f

Browse files
authored
Merge pull request #38 from kdheepak/fix-nil-emoji
2 parents 77ed499 + f40fcab commit a726c5f

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

panvimdoc.sh

100644100755
File mode changed.

scripts/panvimdoc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Writer.Block.Header = function(el)
226226
if lev == 2 then
227227
left = string.upper(s)
228228
right = string.lower(string.gsub(s, "%s", "-"))
229-
if DEDUP_SUBHEADINGS then
229+
if DEDUP_SUBHEADINGS and CURRENT_HEADER then
230230
right_link = string.format("|%s-%s-%s|", PROJECT, CURRENT_HEADER, right)
231231
right = string.format("*%s-%s-%s*", PROJECT, CURRENT_HEADER, right)
232232
else

test/toc-emojis.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
""";
4343
toc = true,
4444
demojify = true,
45+
treesitter = true,
4546
)
4647
@test doc == raw"""
4748
*test.txt* Test Description

0 commit comments

Comments
 (0)