mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-24 17:44:50 +03:00
map h to p
This commit is contained in:
parent
2a7b68cd65
commit
f6395086c2
@ -89,6 +89,12 @@ const Link = ({ href, children, dark }) => {
|
||||
|
||||
export const ProcessedText = ({ text, dark }) => {
|
||||
const remarkReactComponents = {
|
||||
h1: P,
|
||||
h2: P,
|
||||
h3: P,
|
||||
h4: P,
|
||||
h5: P,
|
||||
h6: P,
|
||||
a: (props) => <Link dark={dark} {...props} />,
|
||||
};
|
||||
return <Markdown md={text} options={{ remarkReactComponents }} />;
|
||||
|
Loading…
Reference in New Issue
Block a user