This is take two of porting Idyll to Svelte.
Currently there's no easy way to use this as a standalone library. So for now...
- Clone the repo
yarn
yarn dev
- Hack on the
App.svelte
file.
Idyll and Svelte are great tools on their own, but even better together.
Idyll's greatest strength is that it provides a great collection of built-in components, templates, and styles that makes authoring interactive articles much easier.'
Svelte's greatest strengths lie in its reactive semantics, language tooling, and component composition.
By rewriting Idyll as a Svelte library, we get the best of both worlds. A great library of defaults that lets you
- embed sid files in other sid files
- use any svelte component as a sid component
- get typing information, compiler errors, autocomplete, and syntax highlighting
- take advantage of existing svelte and MDsveX documentation and their future advancements
To support mixed markdown/code files, we use pngwn's MDsveX preprocessor. This preprocessor also gives us a way to supply frontmatter and layout configuration. Since sid files are just special svelte files, we get access to svelte's language server protocol (LSP) goodness.
- case (svelte if/else)
- conditional (svelte if/else)
- default (svelte if/else)
- switch (svelte if/else)
- h1 (md #)
- h2 (md ##)
- h3 (md ###)
- h4 (md ####)
- h5 (md #####)
- h6 (md ######)
- link (md )
- boolean
- button
- aside
- inline
- code-highlight
- display
- image
- svg
- radio
- float
- fixed
- range
- select
- text-container
- graphic
- action
- chart
- cite
- desmos
- header
- youtube
- tweet
- table
- loop
- text-input
- preload
- preview
- gist
- analytics
- annotation
- dynamic
- equation
- scroller
- step
- stepper-control
- stepper
- blog
- centered
- none
- github
- idyll
- none
- tufte
- article
- multipage
- scrollytelling
- slideshow
???