chore: use lint tags (#2952)
This commit is contained in:
@@ -7,6 +7,7 @@ export function CodeBlock(
|
||||
<pre
|
||||
class="rounded-lg text-base leading-relaxed bg-slate-800 text-white p-4 sm:p-6 md:p-4 lg:p-6 2xl:p-8 overflow-x-auto"
|
||||
data-language={lang}
|
||||
// deno-lint-ignore react-no-danger
|
||||
><code dangerouslySetInnerHTML={{ __html: Prism.highlight(code, Prism.languages[lang], lang)}} /></pre>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -128,6 +128,7 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
|
||||
<a
|
||||
href={`#${heading.id}`}
|
||||
class="block truncatetext-gray-600"
|
||||
// deno-lint-ignore react-no-danger
|
||||
dangerouslySetInnerHTML={{ __html: heading.html }}
|
||||
/>
|
||||
</li>
|
||||
@@ -166,6 +167,7 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
|
||||
heading.id,
|
||||
);
|
||||
}}
|
||||
// deno-lint-ignore react-no-danger
|
||||
dangerouslySetInnerHTML={{ __html: heading.html }}
|
||||
/>
|
||||
</li>
|
||||
|
||||
@@ -45,6 +45,7 @@ export default define.page(function App({ Component, state, url }) {
|
||||
: null}
|
||||
<script
|
||||
type="module"
|
||||
// deno-lint-ignore react-no-danger
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
const isDarkMode = localStorage.theme === "dark"
|
||||
|
||||
@@ -204,6 +204,7 @@ export default define.page<typeof handler>(function DocsPage(props) {
|
||||
</h1>
|
||||
<div
|
||||
class="markdown-body mb-8"
|
||||
// deno-lint-ignore react-no-danger
|
||||
dangerouslySetInnerHTML={{ __html: html }}
|
||||
/>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PageProps } from "../../../src/context.ts";
|
||||
import type { PageProps } from "../../../src/context.ts";
|
||||
|
||||
export default function Layout({ Component }: PageProps) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user