Skip to content

Commit bcc49c9

Browse files
authored
Merge pull request #148 from ayatkyo/fix-title-attributes-notation
fix: remove heading attributes notation on page title
2 parents 87e7029 + f23ff1f commit bcc49c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugins/metadata.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Node } from 'unist';
1111
import { select } from 'unist-util-select';
1212
import visit from 'unist-util-visit';
1313
import { VFile } from 'vfile';
14+
import { mdast as attr } from './attr';
1415
import { mdast as footnotes } from './footnotes';
1516

1617
/** Attribute of HTML tag. */
@@ -164,6 +165,7 @@ const parseMarkdown = (md: string): KeyValue => {
164165
[markdown, { gfm: true, commonmark: true }],
165166
// Remove footnotes when reading title from heading
166167
footnotes,
168+
attr,
167169
frontmatter,
168170
mdast,
169171
] as unified.PluggableList<unified.Settings>)

0 commit comments

Comments
 (0)