30 řádky
1.1 KiB
Svelte
30 řádky
1.1 KiB
Svelte
<script>
|
|
import { onMount } from 'svelte';
|
|
import { graphdata } from '$lib/graphdata';
|
|
import { browser, dev, prerendering } from '$app/environment';
|
|
|
|
export let data = {
|
|
content: ''
|
|
};
|
|
//abandoning this, not going to send 500kb on client just to render markdown
|
|
/* onMount(async () => {
|
|
if (dev) return;
|
|
const result = await graphdata('markdown');
|
|
if (result) data.content = await compile(result);
|
|
//console.log(data.content);
|
|
}); */
|
|
</script>
|
|
|
|
<section class="text-white bg-black body-font">
|
|
<div class="container mx-auto flex flex-col xl:max-w-screen-xl px-3">
|
|
<h1 class="pt-12 pb-6 xl:pt-20 xl:pb-10 text-4xl">Hacker Manual</h1>
|
|
<article class="mb-12">
|
|
<div
|
|
class="[&_hr]:md-separator [&_p]:leading-relaxed [&_a]:href [&_h1]:header [&_h2]:head2 [&_ul]:list [&_li]:sublist [&_h3]:head3 [&_h4]:head4 [&_h5]:head5 [&_img[src*='#left']]:hidden md:[&_img[src*='#left']]:flex md:[&_img[src*='#left']]:float-left [&_img[src*='#left']]:mt-12 [&_img[src*='#left']]:mr-5"
|
|
>
|
|
{@html data.content}
|
|
</div>
|
|
</article>
|
|
</div>
|
|
</section>
|