Skip to content

Commit

Permalink
fix: remove heading attributes notation on page title
Browse files Browse the repository at this point in the history
Signed-off-by: Hidayatullah <ayat.kyo@gmail.com>
  • Loading branch information
ayatkyo committed May 28, 2022
1 parent 87e7029 commit f23ff1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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<unified.Settings>)
Expand Down

0 comments on commit f23ff1f

Please sign in to comment.