mirror of
https://github.com/lbr77/blog-astro.git
synced 2026-04-08 16:11:56 +00:00
More customzation
This commit is contained in:
18
src/components/notion/annotations/Strikethrough.astro
Normal file
18
src/components/notion/annotations/Strikethrough.astro
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
import type { RichText } from '../../../lib/interfaces.ts'
|
||||
|
||||
export interface Props {
|
||||
richText: RichText
|
||||
}
|
||||
|
||||
const { richText } = Astro.props
|
||||
---
|
||||
|
||||
{
|
||||
/* prettier-ignore */
|
||||
richText.Annotation.Strikethrough ? (
|
||||
<s><slot /></s>
|
||||
) : (
|
||||
<slot />
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user