Stranger Quarkdown (StrangerQuarkdown, Squarkdown) is a successor to Quarkdown, for integration with Svelte↗, SvelteKit↗ and MDSveX↗.
Write content for a site with Quarkdown-Flavoured Markdown in any directory, then use Squarkdown to export them to .svx
files in your SvelteKit project directory.
static/
directory<link>
tag for you.scss
files to build an scss-config.js
fileI mean, these should be pretty self-explanatory, but here you go anyway ;)
folder | notes |
---|---|
squarkdown |
source code |
tests |
unit tests |
docs |
documentation |
site |
project site |
.github/scripts |
helper scripts for generating docs and site |
[!Tip] See Using Squarkdown in a SvelteKit project for a full detailed walkthrough.
This project is designed to be used as a Git submodule.
Add it to a repo:
git submodule add https://github.com/Sup2point0/stranger-quarkdown
Make sure you’ve got your repo config in ./.squarkdown/squarkup.json
if needed.
Run rake
in the ./stranger-quarkdown/
directory to start the squarkup process. You can add this to your npm run build
definition in package.json
, so that it executes whenever you build the site:
{
"scripts": {
+ "build": "cd stranger-quarkdown && rake && cd .. && vite build"
}
}
Squarkdown will recursively look for all .md
files starting from the root of the repo, and export them to .svx
files in src/routes
.
Many additional configurations are available to customise this process, although the defaults should cover most projects.
MIT. It’s not that even that good code, lmao.