Skip to content

Commit

Permalink
#87 不要な変更を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
miyaji255 committed Feb 10, 2024
1 parent ba5b5dd commit 35245dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
18 changes: 1 addition & 17 deletions src/@types/remark-link-card.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
// ./node_modules/remark-link-card/index.js

declare module 'remark-link-card' {
/** https://github.com/gladevise/remark-link-card?tab=readme-ov-file#api */
export interface RemarkLinkCardOptions {
/**
* Cache image for [`next/image`](https://nextjs.org/docs/api-reference/next/image) (`bool`, default:`false`)
*
* Automatically save open graph images and favicon images to `process.cwd()/public/remark-link-card/`.
*
* Automatically insert the path to images starting with `/remark-link-card/` in the src attribute of img tags.
*/
cache?: boolean
/**
* Display only hostname of target URL (`bool`, default: `false`)
*/
shortenUrl?: boolean
}

const rlc: (options?: RemarkLinkCardOptions) => (tree: any) => Promise<any>
const rlc: (options: any) => any
export default rlc
}
4 changes: 2 additions & 2 deletions src/components/common/InlineLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import type { HTMLAttributes } from 'astro/types'
type Props = Omit<HTMLAttributes<'a'>, 'slot'>
const { class: className, href, ...attrs } = Astro.props
const { class: className, ...attrs } = Astro.props
---

<a href={href} class:list={['text-blue-600 underline', className]} {...attrs}>
<a class:list={['text-blue-600 underline', className]} {...attrs}>
<slot />
</a>

0 comments on commit 35245dc

Please sign in to comment.