Skip to content

Commit

Permalink
fix: markdown mark style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jan 14, 2024
1 parent fde1bca commit 97ab708
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/markdown/markdown.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
text-decoration: none;
border-radius: 3px;

@apply bg-current text-stone-700 print:!bg-transparent print:line-through dark:text-neutral-500;
@apply bg-current text-stone-700 dark:text-neutral-500 print:!bg-transparent print:line-through;

&:hover {
background: transparent;
Expand Down
7 changes: 2 additions & 5 deletions src/components/ui/markdown/parsers/mark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ export const MarkRule: MarkdownToJSX.Rule = {
parse: parseCaptureInline,
react(node, output, state?) {
return (
<mark
key={state?.key}
className="rounded-md bg-yellow-400 bg-opacity-80 px-1 text-black"
>
<span>{output(node.content, state!)}</span>
<mark key={state?.key} className="rounded-md">
<span className="px-1">{output(node.content, state!)}</span>
</mark>
)
},
Expand Down

1 comment on commit 97ab708

@vercel
Copy link

@vercel vercel bot commented on 97ab708 Jan 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

springtide.vercel.app
shiro-innei.vercel.app
shiro-git-main-innei.vercel.app
innei.in

Please sign in to comment.