docs: fix prereq links (#21630)

This commit is contained in:
Bagatur
2024-05-13 18:40:53 -04:00
committed by GitHub
parent 0541e06e21
commit 526ba235f3
25 changed files with 239 additions and 282 deletions

View File

@@ -1,19 +0,0 @@
import React from "react";
import { marked } from "marked";
import DOMPurify from "isomorphic-dompurify";
import Admonition from '@theme/Admonition';
export default function PrerequisiteLinks({ content }) {
return (
<Admonition type="info" title="Prerequisites">
<div style={{ marginTop: "8px" }}>
This guide will assume familiarity with the following concepts:
</div>
<div style={{ marginTop: "16px" }}
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(marked.parse(content))
}}
/>
</Admonition>
);
}