File size: 367 Bytes
9b906ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from "react";
import { ExtraProps } from "react-markdown";

// Custom component to render <hr> in markdown
export function hr({
  ...props
}: React.ClassAttributes<HTMLHRElement> &
  React.HTMLAttributes<HTMLHRElement> &
  ExtraProps) {
  return (
    <hr
      {...props}
      className="my-4 border-0 border-t border-[var(--oh-border)]"
    />
  );
}