From f23ff1f5182b0554f73f0fe92ee3a068e7aab2a1 Mon Sep 17 00:00:00 2001 From: Hidayatullah Date: Sat, 28 May 2022 21:31:03 +0800 Subject: [PATCH] fix: remove heading attributes notation on page title Signed-off-by: Hidayatullah --- src/plugins/metadata.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/metadata.ts b/src/plugins/metadata.ts index 2c66f9f..c6f5e93 100644 --- a/src/plugins/metadata.ts +++ b/src/plugins/metadata.ts @@ -11,6 +11,7 @@ import { Node } from 'unist'; import { select } from 'unist-util-select'; import visit from 'unist-util-visit'; import { VFile } from 'vfile'; +import { mdast as attr } from './attr'; import { mdast as footnotes } from './footnotes'; /** Attribute of HTML tag. */ @@ -164,6 +165,7 @@ const parseMarkdown = (md: string): KeyValue => { [markdown, { gfm: true, commonmark: true }], // Remove footnotes when reading title from heading footnotes, + attr, frontmatter, mdast, ] as unified.PluggableList)