From a933f6b00ce00bebb66c278afb105461d8c3d5d7 Mon Sep 17 00:00:00 2001 From: akabeko Date: Thu, 29 Apr 2021 20:54:39 +0900 Subject: [PATCH] feat: `hidden` specification of the heading is output as an attribute Co-authored-by: Shinyu Murakami --- src/plugins/section.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/section.ts b/src/plugins/section.ts index b2eb739..80bc8b8 100644 --- a/src/plugins/section.ts +++ b/src/plugins/section.ts @@ -31,7 +31,7 @@ const checkProperties = (node: any, depth: number) => { // {hidden} specifier if (Object.keys(hProperties).includes('hidden')) { - node.data.hProperties.style = 'display: none;'; + node.data.hProperties.hidden = "hidden"; } // output section levels like Pandoc