Inclusion of @astrojs/markdown-remark caused errors that cause solid and vite to fail to load in dev. It's stripped in build.
14 lines
352 B
Text
14 lines
352 B
Text
---
|
|
import { processMarkdown } from "@config/io/markdown"
|
|
|
|
export interface Props {
|
|
markdown?: string,
|
|
}
|
|
|
|
const { markdown } = Astro.props;
|
|
|
|
const html = markdown ? await processMarkdown(markdown) : null;
|
|
---
|
|
<section class="typedata-details">
|
|
{html ? <div class="typedata-detailsdata" set:html={html} /> : <em>No details provided</em>}
|
|
</section>
|