fix: 🐛 Fix md pages not rendering correctly

This commit is contained in:
Maxime Cannoodt 2022-11-13 16:13:28 +01:00
parent 80673d1218
commit 8d37c90106
6 changed files with 9 additions and 21 deletions

2
plugin

@ -1 +1 @@
Subproject commit 3893a63831dd1be9b118e4f7e6a7af3e82d7870a
Subproject commit b04f948e199bbc418f7d44620ec7507ef2ca3795

View File

@ -1,5 +1,6 @@
<script lang="ts">
export let html: string;
// @ts-expect-error - Markdown files are not recognized by Vite
import { html } from '/CHANGELOG.md';
</script>
<div class="md:py-8 prose prose-md max-w-3xl dark:prose-invert">

View File

@ -1,8 +1 @@
export const prerender = true;
// @ts-expect-error - Markdown files are not recognized by Vite
import { html } from '/CHANGELOG.md';
export function load() {
return { html };
}

View File

@ -4,7 +4,7 @@
I architected the serverside code to be as light and portable as possible. Currently, it runs on a VPS I rent for about **7$/month**. This is currently the only operational expense for Noteshare.space.
The storage requirements for hosting encrypted text data are incredible small; at the time of writing (28 September, 2022), Noteshare is storing **700 notes in a little over 4MB**.
The storage requirements for hosting encrypted text data are incredible small; at the time of writing (28 September, 2022), Noteshare is storing **1,000 notes in a little over 7MB**.
### Future expenses: hosting file attachments
@ -16,10 +16,10 @@ As I develop this feature, I am still deciding on how I will fund this: communit
I already rented this VPS for other purposes, so I haven no problem paying out of pocket for hosting and you can expect the service to be available
If you wish to financially support me and the development of this plugin and service, you can send donations via my [*Buy me a coffee*-profile](https://www.buymeacoffee.com/mcndt).
If you wish to financially support me and the development of this plugin and service, you can send donations via my [_Buy me a coffee_-profile](https://www.buymeacoffee.com/mcndt).
## Self-hosting
If you are still worried about relying on me for keeping Noteshare up and running, it is an option to host your own instance of Noteshare. You can find the source code, as well as a `docker-compose.yml` file to get you up and running on the [Noteshare GitHub repo](https://github.com/mcndt/Noteshare.space).
*Last updated: 2022-09-28*
_Last updated: 2022-09-28_

View File

@ -1,5 +1,6 @@
<script lang="ts">
export let html: string;
// @ts-expect-error - Markdown files are not recognized by Svelte
import { html } from '../funding.md';
</script>
<div class="md:py-8 prose prose-md max-w-3xl dark:prose-invert">

View File

@ -1,8 +1 @@
export const prerender = true;
// @ts-expect-error - Markdown files are not recognized by Svelte
import { html } from '../funding.md';
export function load() {
return { html };
}