mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
fix(content-blog): make footnote reference DOM ID unique on post listing page (#7212)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
3b32a41f22
commit
71ba449a28
10 changed files with 197 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
import path from 'path';
|
||||
import admonitions from 'remark-admonitions';
|
||||
import footnoteIDFixer from './remark/footnoteIDFixer';
|
||||
import {
|
||||
normalizeUrl,
|
||||
docuHash,
|
||||
|
@ -435,7 +436,10 @@ export default async function pluginContentBlog(
|
|||
options: {
|
||||
remarkPlugins,
|
||||
rehypePlugins,
|
||||
beforeDefaultRemarkPlugins,
|
||||
beforeDefaultRemarkPlugins: [
|
||||
footnoteIDFixer,
|
||||
...beforeDefaultRemarkPlugins,
|
||||
],
|
||||
beforeDefaultRehypePlugins,
|
||||
staticDirs: siteConfig.staticDirectories.map((dir) =>
|
||||
path.resolve(siteDir, dir),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue