Skip to content

Commit

Permalink
Add some credit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bbecquet committed Feb 14, 2025
1 parent 3996700 commit 53e68c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/starlight-client-mermaid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export default function starlightClientMermaid(
};
}

// Overrides a Starlight component, with warning and instructions
// in case it was already overriden in user config.
// Credit: https://github.com/HiDeoo/starlight-blog/blob/94d156f50321c94a8f8af8a916ddcd08082f807d/packages/starlight-blog/index.ts#L119-L136
function overrideStarlightComponent(
components: StarlightUserConfig["components"],
logger: AstroIntegrationLogger,
Expand Down
4 changes: 4 additions & 0 deletions packages/starlight-client-mermaid/scripts/remarkTagMermaid.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Remark plugin to transform Mermaid codeblocks in Markdown
// into HTML divs with the raw Mermaid code in data attribute
// Adapted from https://github.com/JuanM04/portfolio/blob/983b0ed0eabdac37bf8b7912d3e8128a443192b9/src/plugins/mermaid.ts

import { visit } from "unist-util-visit";
import type { RemarkPlugin } from "@astrojs/markdown-remark";

Expand Down

0 comments on commit 53e68c7

Please sign in to comment.