Gulp + Gulpsmith + Metalsmith を使用して Web サイトを作成しています。
metalsmith_markdown は、HTML を次のようにレンダリングしています。
# This is an H1
に<h1 id="this-is-an-h1">This is an H1</h1>
。その「id」タグをレンダリングしているのはなぜですか?
それはなぜでしょうか?
これは、Gulpfile.js でマークダウン レンダリングを処理する部分です。
.use(markdown({
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: true
}))