From f40fcab4f69393485958b16c7b530395838fba87 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Wed, 22 Feb 2023 17:47:50 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20nil=20emoji=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- panvimdoc.sh | 0 scripts/panvimdoc.lua | 2 +- test/toc-emojis.jl | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 panvimdoc.sh diff --git a/panvimdoc.sh b/panvimdoc.sh old mode 100644 new mode 100755 diff --git a/scripts/panvimdoc.lua b/scripts/panvimdoc.lua index 9378d9d..8bf1dd0 100644 --- a/scripts/panvimdoc.lua +++ b/scripts/panvimdoc.lua @@ -226,7 +226,7 @@ Writer.Block.Header = function(el) if lev == 2 then left = string.upper(s) right = string.lower(string.gsub(s, "%s", "-")) - if DEDUP_SUBHEADINGS then + if DEDUP_SUBHEADINGS and CURRENT_HEADER then right_link = string.format("|%s-%s-%s|", PROJECT, CURRENT_HEADER, right) right = string.format("*%s-%s-%s*", PROJECT, CURRENT_HEADER, right) else diff --git a/test/toc-emojis.jl b/test/toc-emojis.jl index 7abc508..89c113a 100644 --- a/test/toc-emojis.jl +++ b/test/toc-emojis.jl @@ -42,6 +42,7 @@ """; toc = true, demojify = true, + treesitter = true, ) @test doc == raw""" *test.txt* Test Description