support markdown for tldr (#268)

This commit is contained in:
Kalidou Diagne
2025-01-31 09:50:42 +00:00
committed by GitHub
parent 87d06e8f53
commit 73089fac15
2 changed files with 53 additions and 5 deletions

View File

@@ -93,9 +93,54 @@ export const ProjectContent = ({
{project?.name}
</h1>
{content?.tldr && (
<p className="py-2 leading-[150%] text-base text-slate-600">
<Markdown
components={{
h1: ({ node, ...props }) =>
createMarkdownElement("h1", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h2: ({ node, ...props }) =>
createMarkdownElement("h2", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h3: ({ node, ...props }) =>
createMarkdownElement("h3", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h4: ({ node, ...props }) =>
createMarkdownElement("h4", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h5: ({ node, ...props }) =>
createMarkdownElement("h5", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
h6: ({ node, ...props }) =>
createMarkdownElement("h6", {
className:
"text-neutral-700 text-[22px] leading-6 font-bold pt-10 pb-4",
...props,
}),
p: ({ node, ...props }) =>
createMarkdownElement("p", {
className:
"py-2 leading-[150%] text-base text-slate-600",
...props,
}),
}}
>
{content?.tldr}
</p>
</Markdown>
)}
</div>
</div>

View File

@@ -11,10 +11,13 @@ export const pse_halo2: ProjectInterface = {
},
content: {
en: {
tldr: "[PSE-Halo2](https://github.com/privacy-scaling-explorations/halo2) is a rearchiteted, KZG-backended fork of zcash's Halo2, an instantiation of PLONK, with support for [more curves](https://github.com/privacy-scaling-explorations/halo2curves) and other [experimental features](https://github.com/kilic/tetris)",
description: `PSE-Halo2 modified, extended, and eventually [re-architected](https://github.com/privacy-scaling-explorations/halo2/pull/254) the original Halo2 implementation by zcash -an instantiation of the PLONK proof system.
tldr: `
[PSE-Halo2](https://github.com/privacy-scaling-explorations/halo2) is a rearchiteted, KZG-backended fork of zcash's Halo2, an instantiation of PLONK, with support for [more curves](https://github.com/privacy-scaling-explorations/halo2curves) and other [experimental features](https://github.com/kilic/tetris)
`,
description: `
PSE-Halo2 modified, extended, and eventually [re-architected](https://github.com/privacy-scaling-explorations/halo2/pull/254) the original Halo2 implementation by zcash -an instantiation of the PLONK proof system.
The original IPA backend was swapped with KZG for cost-effective L1 verifiability, and comes with a Solidity verifier. New features such as support for many additional curves were added, and the system was eventually re-architected by [splitting the front- and backends](https://github.com/privacy-scaling-explorations/halo2/pull/254). PSE-Halo2 has significant contributions from the wider community.`,
The original IPA backend was swapped with KZG for cost-effective L1 verifiability, and comes with a Solidity verifier. New features such as support for many additional curves were added, and the system was eventually re-architected by [splitting the front- and backends](https://github.com/privacy-scaling-explorations/halo2/pull/254). PSE-Halo2 has significant contributions from the wider community.`,
},
},
tags: {