├── .changeset ├── README.md └── config.json ├── .editorconfig ├── .github ├── dependabot.yml └── workflows │ ├── npm-previews.yaml │ ├── release.yml │ ├── test-basic.yaml │ └── test-e2e.yaml ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc.yaml ├── LICENSE ├── README.md ├── package.json ├── packages ├── mdsvex │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── decs.d.ts │ ├── globals.d.ts │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── define-config.ts │ │ ├── index.ts │ │ ├── main.ts │ │ ├── parsers │ │ │ ├── html_block.ts │ │ │ ├── index.ts │ │ │ ├── re_tag.ts │ │ │ └── svelte.ts │ │ ├── transformers │ │ │ └── index.ts │ │ ├── types.ts │ │ └── utils.ts │ └── test │ │ ├── _fixtures │ │ ├── Layout.svelte │ │ ├── LayoutThree.svelte │ │ ├── LayoutThreeWithComponents.svelte │ │ ├── LayoutTwo.svelte │ │ ├── LayoutTwoWithComponents.svelte │ │ ├── LayoutWithComponents.svelte │ │ ├── hybrid │ │ │ ├── input │ │ │ │ ├── code-escaping.svx │ │ │ │ ├── code-highlight-nesting.svx │ │ │ │ ├── component-children.svx │ │ │ │ ├── component-simple-00.svx │ │ │ │ ├── component-simple-01.svx │ │ │ │ ├── component-simple-02.svx │ │ │ │ ├── component-simple-03.svx │ │ │ │ ├── component-simple-04.svx │ │ │ │ ├── dollar-one-in-frontmatter.svx │ │ │ │ ├── error.svx │ │ │ │ ├── link-curlies.svx │ │ │ │ └── tags-in-frontmatter.svx │ │ │ └── output │ │ │ │ ├── code-escaping.svelte │ │ │ │ ├── code-highlight-nesting.svelte │ │ │ │ ├── component-children.svelte │ │ │ │ ├── component-simple-00.svelte │ │ │ │ ├── component-simple-01.svelte │ │ │ │ ├── component-simple-02.svelte │ │ │ │ ├── component-simple-03.svelte │ │ │ │ ├── component-simple-04.svelte │ │ │ │ ├── dollar-one-in-frontmatter.svelte │ │ │ │ ├── error.svelte │ │ │ │ ├── link-curlies.svelte │ │ │ │ └── tags-in-frontmatter.svelte │ │ ├── markdown │ │ │ ├── input │ │ │ │ ├── anchors-by-reference.md │ │ │ │ ├── anchors-followed-by-brakets.md │ │ │ │ ├── automatic-anchors.md │ │ │ │ ├── blockquote-followed-by-code.md │ │ │ │ ├── blockquote-inside-code.md │ │ │ │ ├── blockquote-nested-markdown.md │ │ │ │ ├── blockquote.md │ │ │ │ ├── code-block-html-escape.md │ │ │ │ ├── code-block-with-special-chars.md │ │ │ │ ├── code-block.md │ │ │ │ ├── double-emphasis.md │ │ │ │ ├── doubline-list.md │ │ │ │ ├── ellipsis.md │ │ │ │ ├── emphasis-inside-inline-code.md │ │ │ │ ├── emphasis.md │ │ │ │ ├── encodeHTMLCodeTags.md │ │ │ │ ├── escaped-html-taglikes.md │ │ │ │ ├── escaped-number-period.md │ │ │ │ ├── escaping.md │ │ │ │ ├── github-style-at-start.md │ │ │ │ ├── github-style-codeblock-inside-quote.md │ │ │ │ ├── github-style-codeblock.md │ │ │ │ ├── github-style-linebreaks.md │ │ │ │ ├── h1-with-double-hash.md │ │ │ │ ├── h1-with-equals.md │ │ │ │ ├── h1-with-single-hash.md │ │ │ │ ├── h2-with-dashes.md │ │ │ │ ├── h2-with-double-hash.md │ │ │ │ ├── h2-with-single-hash.md │ │ │ │ ├── h3-with-double-hash.md │ │ │ │ ├── h3-with-single-hash.md │ │ │ │ ├── h4-with-single-hash.md │ │ │ │ ├── h5-with-single-hash.md │ │ │ │ ├── h6-with-single-hash.md │ │ │ │ ├── horizontal-rules.md │ │ │ │ ├── html-comments.md │ │ │ │ ├── html-inside-listed-code.md │ │ │ │ ├── html5-strutural-tags.md │ │ │ │ ├── images-followed-by-brackets.md │ │ │ │ ├── images.md │ │ │ │ ├── implicit-anchors.md │ │ │ │ ├── inline-anchors.md │ │ │ │ ├── inline-code.md │ │ │ │ ├── inline-escaped-chars.md │ │ │ │ ├── inline-style-tag.md │ │ │ │ ├── lazy-blockquote.md │ │ │ │ ├── line-starts-with-html.md │ │ │ │ ├── list-followed-by-blockquote.md │ │ │ │ ├── list-followed-by-ghcode.md │ │ │ │ ├── list-with-blockquote.md │ │ │ │ ├── literal-html-tags.md │ │ │ │ ├── multi-paragraph-list.md │ │ │ │ ├── multiline-unordered-list.md │ │ │ │ ├── nested-blockquote.md │ │ │ │ ├── nested-gh-codeblocks.md │ │ │ │ ├── obfuscated-emails.md │ │ │ │ ├── ordered-list-same-number.md │ │ │ │ ├── ordered-list-starting-number.md │ │ │ │ ├── ordered-list-wrong-numbers.md │ │ │ │ ├── ordered-list.md │ │ │ │ ├── paragraphed-list-with-sublists.md │ │ │ │ ├── pre-code-tags-inside-code-block.md │ │ │ │ ├── pre-code-tags.md │ │ │ │ ├── relative-anchors.md │ │ │ │ ├── repeated-headers.md │ │ │ │ ├── simple-paragraph.md │ │ │ │ ├── strip-references.md │ │ │ │ ├── strong.md │ │ │ │ ├── unordered-list-asterisk.md │ │ │ │ ├── unordered-list-minus.md │ │ │ │ ├── unordered-list-plus.md │ │ │ │ └── url-with-parenthesis.md │ │ │ └── output │ │ │ │ ├── anchors-by-reference.html │ │ │ │ ├── anchors-followed-by-brakets.html │ │ │ │ ├── automatic-anchors.html │ │ │ │ ├── blockquote-followed-by-code.html │ │ │ │ ├── blockquote-inside-code.html │ │ │ │ ├── blockquote-nested-markdown.html │ │ │ │ ├── blockquote.html │ │ │ │ ├── code-block-html-escape.html │ │ │ │ ├── code-block-with-special-chars.html │ │ │ │ ├── code-block.html │ │ │ │ ├── double-emphasis.html │ │ │ │ ├── doubline-list.html │ │ │ │ ├── ellipsis.html │ │ │ │ ├── emphasis-inside-inline-code.html │ │ │ │ ├── emphasis.html │ │ │ │ ├── encodeHTMLCodeTags.html │ │ │ │ ├── escaped-html-taglikes.html │ │ │ │ ├── escaped-number-period.html │ │ │ │ ├── escaping.html │ │ │ │ ├── github-style-at-start.html │ │ │ │ ├── github-style-codeblock-inside-quote.html │ │ │ │ ├── github-style-codeblock.html │ │ │ │ ├── github-style-linebreaks.html │ │ │ │ ├── h1-with-double-hash.html │ │ │ │ ├── h1-with-equals.html │ │ │ │ ├── h1-with-single-hash.html │ │ │ │ ├── h2-with-dashes.html │ │ │ │ ├── h2-with-double-hash.html │ │ │ │ ├── h2-with-single-hash.html │ │ │ │ ├── h3-with-double-hash.html │ │ │ │ ├── h3-with-single-hash.html │ │ │ │ ├── h4-with-single-hash.html │ │ │ │ ├── h5-with-single-hash.html │ │ │ │ ├── h6-with-single-hash.html │ │ │ │ ├── horizontal-rules.html │ │ │ │ ├── html-comments.html │ │ │ │ ├── html-inside-listed-code.html │ │ │ │ ├── html5-strutural-tags.html │ │ │ │ ├── images-followed-by-brackets.html │ │ │ │ ├── images.html │ │ │ │ ├── implicit-anchors.html │ │ │ │ ├── inline-anchors.html │ │ │ │ ├── inline-code.html │ │ │ │ ├── inline-escaped-chars.html │ │ │ │ ├── inline-style-tag.html │ │ │ │ ├── lazy-blockquote.html │ │ │ │ ├── line-starts-with-html.html │ │ │ │ ├── list-followed-by-blockquote.html │ │ │ │ ├── list-followed-by-ghcode.html │ │ │ │ ├── list-with-blockquote.html │ │ │ │ ├── list-with-code.html │ │ │ │ ├── literal-html-tags.html │ │ │ │ ├── multi-paragraph-list.html │ │ │ │ ├── multiline-unordered-list.html │ │ │ │ ├── nested-blockquote.html │ │ │ │ ├── nested-gh-codeblocks.html │ │ │ │ ├── obfuscated-emails.html │ │ │ │ ├── ordered-list-same-number.html │ │ │ │ ├── ordered-list-starting-number.html │ │ │ │ ├── ordered-list-wrong-numbers.html │ │ │ │ ├── ordered-list.html │ │ │ │ ├── paragraphed-list-with-sublists.html │ │ │ │ ├── pre-code-tags-inside-code-block.html │ │ │ │ ├── pre-code-tags.html │ │ │ │ ├── relative-anchors.html │ │ │ │ ├── repeated-headers.html │ │ │ │ ├── simple-paragraph.html │ │ │ │ ├── strip-references.html │ │ │ │ ├── strong.html │ │ │ │ ├── unordered-list-asterisk.html │ │ │ │ ├── unordered-list-minus.html │ │ │ │ ├── unordered-list-plus.html │ │ │ │ └── url-with-parenthesis.html │ │ └── svelte │ │ │ ├── 00-introduction │ │ │ ├── 00-hello-world │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-dynamic-attributes │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-styling │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-nested-components │ │ │ │ ├── App.svelte │ │ │ │ ├── Nested.svelte │ │ │ │ └── meta.json │ │ │ ├── 04-html-tags │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 01-reactivity │ │ │ ├── 00-reactive-assignments │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-reactive-declarations │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-reactive-statements │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 02-props │ │ │ ├── 00-declaring-props │ │ │ │ ├── App.svelte │ │ │ │ ├── Nested.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-default-values │ │ │ │ ├── App.svelte │ │ │ │ ├── Nested.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-spread-props │ │ │ │ ├── App.svelte │ │ │ │ ├── Info.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 03-logic │ │ │ ├── 00-if-blocks │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-else-blocks │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-else-if-blocks │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-each-blocks │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 04-keyed-each-blocks │ │ │ │ ├── App.svelte │ │ │ │ ├── Thing.svelte │ │ │ │ └── meta.json │ │ │ ├── 05-await-blocks │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 04-events │ │ │ ├── 00-dom-events │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-inline-handlers │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-event-modifiers │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-component-events │ │ │ │ ├── App.svelte │ │ │ │ ├── Inner.svelte │ │ │ │ └── meta.json │ │ │ ├── 04-event-forwarding │ │ │ │ ├── App.svelte │ │ │ │ ├── Inner.svelte │ │ │ │ ├── Outer.svelte │ │ │ │ └── meta.json │ │ │ ├── 05-dom-event-forwarding │ │ │ │ ├── App.svelte │ │ │ │ ├── FancyButton.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 05-bindings │ │ │ ├── 00-text-inputs │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-numeric-inputs │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-checkbox-inputs │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-group-inputs │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 04-textarea-inputs │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 05-select-bindings │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 06-multiple-select-bindings │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 07-each-block-bindings │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 08-media-elements │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 09-dimensions │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 10-bind-this │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 11-component-bindings │ │ │ │ ├── App.svelte │ │ │ │ ├── Keypad.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 06-lifecycle │ │ │ ├── 00-onmount │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-ondestroy │ │ │ │ ├── App.svelte │ │ │ │ ├── meta.json │ │ │ │ └── utils.js │ │ │ ├── 02-update │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-tick │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 07-stores │ │ │ ├── 00-writable-stores │ │ │ │ ├── App.svelte │ │ │ │ ├── Decrementer.svelte │ │ │ │ ├── Incrementer.svelte │ │ │ │ ├── Resetter.svelte │ │ │ │ ├── meta.json │ │ │ │ └── stores.js │ │ │ ├── 01-auto-subscriptions │ │ │ │ ├── App.svelte │ │ │ │ ├── Decrementer.svelte │ │ │ │ ├── Incrementer.svelte │ │ │ │ ├── Resetter.svelte │ │ │ │ ├── meta.json │ │ │ │ └── stores.js │ │ │ ├── 02-readable-stores │ │ │ │ ├── App.svelte │ │ │ │ ├── meta.json │ │ │ │ └── stores.js │ │ │ ├── 03-derived-stores │ │ │ │ ├── App.svelte │ │ │ │ ├── meta.json │ │ │ │ └── stores.js │ │ │ ├── 04-custom-stores │ │ │ │ ├── App.svelte │ │ │ │ ├── meta.json │ │ │ │ └── stores.js │ │ │ └── meta.json │ │ │ ├── 08-motion │ │ │ ├── 00-tweened │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-spring │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 09-transitions │ │ │ ├── 00-transition │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-adding-parameters-to-transitions │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-in-and-out │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-custom-css-transitions │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 04-custom-js-transitions │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 05-transition-events │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 06-deferred-transitions │ │ │ │ ├── App.svelte │ │ │ │ ├── images.js │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 10-animations │ │ │ ├── 00-animate │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 11-easing │ │ │ ├── 00-easing │ │ │ │ ├── App.svelte │ │ │ │ ├── Controls.svelte │ │ │ │ ├── Grid.svelte │ │ │ │ ├── eases.js │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 12-svg │ │ │ ├── 01-clock │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-bar-chart │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-area-chart │ │ │ │ ├── App.svelte │ │ │ │ ├── data.js │ │ │ │ └── meta.json │ │ │ ├── 04-scatterplot │ │ │ │ ├── App.svelte │ │ │ │ ├── Scatterplot.svelte │ │ │ │ ├── data.js │ │ │ │ └── meta.json │ │ │ ├── 05-svg-transitions │ │ │ │ ├── App.svelte │ │ │ │ ├── custom-transitions.js │ │ │ │ ├── meta.json │ │ │ │ └── shape.js │ │ │ └── meta.json │ │ │ ├── 13-actions │ │ │ ├── 00-actions │ │ │ │ ├── App.svelte │ │ │ │ ├── meta.json │ │ │ │ └── pannable.js │ │ │ ├── 01-adding-parameters-to-actions │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 14-classes │ │ │ ├── 00-classes │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-class-shorthand │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 15-composition │ │ │ ├── 00-slots │ │ │ │ ├── App.svelte │ │ │ │ ├── Box.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-slot-fallbacks │ │ │ │ ├── App.svelte │ │ │ │ ├── Box.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-named-slots │ │ │ │ ├── App.svelte │ │ │ │ ├── ContactCard.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-slot-props │ │ │ │ ├── App.svelte │ │ │ │ ├── Hoverable.svelte │ │ │ │ └── meta.json │ │ │ ├── 04-modal │ │ │ │ ├── App.svelte │ │ │ │ ├── Modal.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 16-context │ │ │ ├── 00-context-api │ │ │ │ ├── App.svelte │ │ │ │ ├── Map.svelte │ │ │ │ ├── MapMarker.svelte │ │ │ │ ├── mapbox.js │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 17-special-elements │ │ │ ├── 00-svelte-self │ │ │ │ ├── App.svelte │ │ │ │ ├── File.svelte │ │ │ │ ├── Folder.svelte │ │ │ │ └── meta.json │ │ │ ├── 01-svelte-component │ │ │ │ ├── App.svelte │ │ │ │ ├── BlueThing.svelte │ │ │ │ ├── GreenThing.svelte │ │ │ │ ├── RedThing.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-svelte-window │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-svelte-window-bindings │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 04-svelte-body │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 05-svelte-head │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 18-module-context │ │ │ ├── 01-module-exports │ │ │ │ ├── App.svelte │ │ │ │ ├── AudioPlayer.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 19-debugging │ │ │ ├── 00-debug │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 20-7guis │ │ │ ├── 01-7guis-counter │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-7guis-temperature │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 03-7guis-flight-booker │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 04-7guis-timer │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 05-7guis-crud │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ ├── 06-7guis-circles │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 21-miscellaneous │ │ │ ├── 01-hacker-news │ │ │ │ ├── App.svelte │ │ │ │ ├── Comment.svelte │ │ │ │ ├── Item.svelte │ │ │ │ ├── List.svelte │ │ │ │ ├── Summary.svelte │ │ │ │ └── meta.json │ │ │ ├── 02-immutable-data │ │ │ │ ├── App.svelte │ │ │ │ ├── ImmutableTodo.svelte │ │ │ │ ├── MutableTodo.svelte │ │ │ │ ├── flash.js │ │ │ │ └── meta.json │ │ │ └── meta.json │ │ │ ├── 22-bugs │ │ │ └── CSS │ │ │ │ ├── App.svelte │ │ │ │ └── meta.json │ │ │ └── 99-embeds │ │ │ ├── 20181225-blog-svelte-css-in-js │ │ │ ├── App.svelte │ │ │ ├── Hero.svelte │ │ │ ├── meta.json │ │ │ └── styles.js │ │ │ ├── 20190420-blog-write-less-code │ │ │ ├── App.svelte │ │ │ └── meta.json │ │ │ └── meta.json │ │ ├── it │ │ ├── code_highlighting.spec.ts │ │ ├── mdsvex.spec.ts │ │ ├── pure-markdown.spec.ts │ │ ├── pure-svelte.spec.ts │ │ └── svelte-markdown.spec.ts │ │ ├── parsers │ │ ├── svelte_blocks.spec.ts │ │ └── svelte_tags.spec.ts │ │ └── utils.ts ├── parse │ ├── CHANGELOG.md │ ├── package.json │ └── src │ │ ├── constants.ts │ │ └── main.ts ├── pfm-parse │ ├── CHANGELOG.md │ ├── build.js │ ├── package.json │ └── src │ │ └── main.ts ├── site │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── prism │ │ ├── prism.js │ │ └── svx.js │ ├── rollup.workers.js │ ├── src │ │ ├── app.html │ │ ├── components │ │ │ ├── Cheatsheet.svx │ │ │ ├── GithubIcon.svelte │ │ │ ├── Input.svelte │ │ │ ├── Nav.svelte │ │ │ ├── Output.svelte │ │ │ ├── Penguin.svelte │ │ │ ├── Repl │ │ │ │ ├── Bundler.js │ │ │ │ ├── CodeMirror.svelte │ │ │ │ ├── Input │ │ │ │ │ ├── ComponentSelector.svelte │ │ │ │ │ └── ModuleEditor.svelte │ │ │ │ ├── Message.svelte │ │ │ │ ├── Output │ │ │ │ │ ├── Compiler.js │ │ │ │ │ ├── CompilerOptions.svelte │ │ │ │ │ ├── Console.svelte │ │ │ │ │ ├── PaneWithPanel.svelte │ │ │ │ │ ├── ReplProxy.js │ │ │ │ │ ├── Viewer.svelte │ │ │ │ │ ├── getLocationFromStack.js │ │ │ │ │ ├── index.svelte │ │ │ │ │ └── srcdoc │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── styles.css │ │ │ │ ├── Repl.svelte │ │ │ │ ├── SplitPane.svelte │ │ │ │ ├── codemirror-ayu.css │ │ │ │ ├── codemirror.css │ │ │ │ ├── codemirror.js │ │ │ │ ├── env.js │ │ │ │ └── workers │ │ │ │ │ ├── bundler │ │ │ │ │ ├── index.js │ │ │ │ │ └── plugins │ │ │ │ │ │ ├── commonjs.js │ │ │ │ │ │ ├── glsl.js │ │ │ │ │ │ └── json.js │ │ │ │ │ └── compiler │ │ │ │ │ └── index.js │ │ │ ├── _cheatsheet.svtext │ │ │ └── typewriter.js │ │ └── routes │ │ │ ├── +error.svelte │ │ │ ├── +layout.svelte │ │ │ ├── +page.svelte │ │ │ ├── _docs.svtext │ │ │ ├── _source.js │ │ │ ├── docs │ │ │ └── +page.svelte │ │ │ └── playground │ │ │ └── +page.svelte │ ├── static │ │ ├── android-icon-192x192.png │ │ ├── browserconfig.xml │ │ ├── favicon-16x16.png │ │ ├── favicon-32x32.png │ │ ├── favicon-96x96.png │ │ ├── favicon.ico │ │ ├── fonts │ │ │ ├── catamaran-light-webfont.woff2 │ │ │ ├── firamono-regular-webfont.woff │ │ │ ├── firamono-regular-webfont.woff2 │ │ │ ├── firamono-regular-webfont2.woff2 │ │ │ ├── lato-bold-webfont.woff │ │ │ ├── lato-bold-webfont.woff2 │ │ │ ├── lato-regular-webfont.woff │ │ │ ├── lato-regular-webfont.woff2 │ │ │ ├── roboto-bold-webfont.woff │ │ │ ├── roboto-bold-webfont.woff2 │ │ │ ├── roboto-light-webfont.woff │ │ │ ├── roboto-light-webfont.woff2 │ │ │ ├── roboto-regular-webfont.woff │ │ │ ├── roboto-regular-webfont.woff2 │ │ │ ├── roboto-thin-webfont.woff │ │ │ └── roboto-thin-webfont.woff2 │ │ ├── global.css │ │ ├── link.svg │ │ ├── manifest.json │ │ ├── og.png │ │ ├── penguin.gif │ │ ├── penguin_static.gif │ │ └── workers │ │ │ ├── bundler.js │ │ │ ├── compiler.js │ │ │ ├── components.js │ │ │ ├── mdsvex.js │ │ │ ├── prism-abap.min.js │ │ │ ├── prism-abnf.min.js │ │ │ ├── prism-actionscript.min.js │ │ │ ├── prism-ada.min.js │ │ │ ├── prism-antlr4.min.js │ │ │ ├── prism-apacheconf.min.js │ │ │ ├── prism-apl.min.js │ │ │ ├── prism-applescript.min.js │ │ │ ├── prism-aql.min.js │ │ │ ├── prism-arduino.min.js │ │ │ ├── prism-arff.min.js │ │ │ ├── prism-asciidoc.min.js │ │ │ ├── prism-asm6502.min.js │ │ │ ├── prism-aspnet.min.js │ │ │ ├── prism-autohotkey.min.js │ │ │ ├── prism-bash.min.js │ │ │ ├── prism-basic.min.js │ │ │ ├── prism-batch.min.js │ │ │ ├── prism-bbcode.min.js │ │ │ ├── prism-bison.min.js │ │ │ ├── prism-bnf.min.js │ │ │ ├── prism-brainfuck.min.js │ │ │ ├── prism-brightscript.min.js │ │ │ ├── prism-bro.min.js │ │ │ ├── prism-c.min.js │ │ │ ├── prism-cil.min.js │ │ │ ├── prism-clike.min.js │ │ │ ├── prism-clojure.min.js │ │ │ ├── prism-cmake.min.js │ │ │ ├── prism-coffeescript.min.js │ │ │ ├── prism-core.min.js │ │ │ ├── prism-cpp.min.js │ │ │ ├── prism-crystal.min.js │ │ │ ├── prism-csharp.min.js │ │ │ ├── prism-csp.min.js │ │ │ ├── prism-css-extras.min.js │ │ │ ├── prism-css.min.js │ │ │ ├── prism-d.min.js │ │ │ ├── prism-dart.min.js │ │ │ ├── prism-diff.min.js │ │ │ ├── prism-django.min.js │ │ │ ├── prism-dns-zone-file.min.js │ │ │ ├── prism-docker.min.js │ │ │ ├── prism-ebnf.min.js │ │ │ ├── prism-eiffel.min.js │ │ │ ├── prism-ejs.min.js │ │ │ ├── prism-elixir.min.js │ │ │ ├── prism-elm.min.js │ │ │ ├── prism-erb.min.js │ │ │ ├── prism-erlang.min.js │ │ │ ├── prism-etlua.min.js │ │ │ ├── prism-firestore-security-rules.min.js │ │ │ ├── prism-flow.min.js │ │ │ ├── prism-fortran.min.js │ │ │ ├── prism-fsharp.min.js │ │ │ ├── prism-ftl.min.js │ │ │ ├── prism-gcode.min.js │ │ │ ├── prism-gdscript.min.js │ │ │ ├── prism-gedcom.min.js │ │ │ ├── prism-gherkin.min.js │ │ │ ├── prism-git.min.js │ │ │ ├── prism-glsl.min.js │ │ │ ├── prism-gml.min.js │ │ │ ├── prism-go.min.js │ │ │ ├── prism-graphql.min.js │ │ │ ├── prism-groovy.min.js │ │ │ ├── prism-haml.min.js │ │ │ ├── prism-handlebars.min.js │ │ │ ├── prism-haskell.min.js │ │ │ ├── prism-haxe.min.js │ │ │ ├── prism-hcl.min.js │ │ │ ├── prism-hpkp.min.js │ │ │ ├── prism-hsts.min.js │ │ │ ├── prism-http.min.js │ │ │ ├── prism-ichigojam.min.js │ │ │ ├── prism-icon.min.js │ │ │ ├── prism-inform7.min.js │ │ │ ├── prism-ini.min.js │ │ │ ├── prism-io.min.js │ │ │ ├── prism-j.min.js │ │ │ ├── prism-java.min.js │ │ │ ├── prism-javadoc.min.js │ │ │ ├── prism-javadoclike.min.js │ │ │ ├── prism-javascript.min.js │ │ │ ├── prism-javastacktrace.min.js │ │ │ ├── prism-jolie.min.js │ │ │ ├── prism-jq.min.js │ │ │ ├── prism-js-extras.min.js │ │ │ ├── prism-js-templates.min.js │ │ │ ├── prism-jsdoc.min.js │ │ │ ├── prism-json.min.js │ │ │ ├── prism-json5.min.js │ │ │ ├── prism-jsonp.min.js │ │ │ ├── prism-jsx.min.js │ │ │ ├── prism-julia.min.js │ │ │ ├── prism-keyman.min.js │ │ │ ├── prism-kotlin.min.js │ │ │ ├── prism-latex.min.js │ │ │ ├── prism-latte.min.js │ │ │ ├── prism-less.min.js │ │ │ ├── prism-lilypond.min.js │ │ │ ├── prism-liquid.min.js │ │ │ ├── prism-lisp.min.js │ │ │ ├── prism-livescript.min.js │ │ │ ├── prism-lolcode.min.js │ │ │ ├── prism-lua.min.js │ │ │ ├── prism-makefile.min.js │ │ │ ├── prism-markdown.min.js │ │ │ ├── prism-markup-templating.min.js │ │ │ ├── prism-markup.min.js │ │ │ ├── prism-matlab.min.js │ │ │ ├── prism-mel.min.js │ │ │ ├── prism-mizar.min.js │ │ │ ├── prism-monkey.min.js │ │ │ ├── prism-moonscript.min.js │ │ │ ├── prism-n1ql.min.js │ │ │ ├── prism-n4js.min.js │ │ │ ├── prism-nand2tetris-hdl.min.js │ │ │ ├── prism-nasm.min.js │ │ │ ├── prism-neon.min.js │ │ │ ├── prism-nginx.min.js │ │ │ ├── prism-nim.min.js │ │ │ ├── prism-nix.min.js │ │ │ ├── prism-nsis.min.js │ │ │ ├── prism-objectivec.min.js │ │ │ ├── prism-ocaml.min.js │ │ │ ├── prism-opencl.min.js │ │ │ ├── prism-oz.min.js │ │ │ ├── prism-parigp.min.js │ │ │ ├── prism-parser.min.js │ │ │ ├── prism-pascal.min.js │ │ │ ├── prism-pascaligo.min.js │ │ │ ├── prism-pcaxis.min.js │ │ │ ├── prism-perl.min.js │ │ │ ├── prism-php-extras.min.js │ │ │ ├── prism-php.min.js │ │ │ ├── prism-phpdoc.min.js │ │ │ ├── prism-plsql.min.js │ │ │ ├── prism-powershell.min.js │ │ │ ├── prism-processing.min.js │ │ │ ├── prism-prolog.min.js │ │ │ ├── prism-properties.min.js │ │ │ ├── prism-protobuf.min.js │ │ │ ├── prism-pug.min.js │ │ │ ├── prism-puppet.min.js │ │ │ ├── prism-pure.min.js │ │ │ ├── prism-python.min.js │ │ │ ├── prism-q.min.js │ │ │ ├── prism-qml.min.js │ │ │ ├── prism-qore.min.js │ │ │ ├── prism-r.min.js │ │ │ ├── prism-reason.min.js │ │ │ ├── prism-regex.min.js │ │ │ ├── prism-renpy.min.js │ │ │ ├── prism-rest.min.js │ │ │ ├── prism-rip.min.js │ │ │ ├── prism-roboconf.min.js │ │ │ ├── prism-robotframework.min.js │ │ │ ├── prism-ruby.min.js │ │ │ ├── prism-rust.min.js │ │ │ ├── prism-sas.min.js │ │ │ ├── prism-sass.min.js │ │ │ ├── prism-scala.min.js │ │ │ ├── prism-scheme.min.js │ │ │ ├── prism-scss.min.js │ │ │ ├── prism-shell-session.min.js │ │ │ ├── prism-smalltalk.min.js │ │ │ ├── prism-smarty.min.js │ │ │ ├── prism-solidity.min.js │ │ │ ├── prism-soy.min.js │ │ │ ├── prism-sparql.min.js │ │ │ ├── prism-splunk-spl.min.js │ │ │ ├── prism-sqf.min.js │ │ │ ├── prism-sql.min.js │ │ │ ├── prism-stylus.min.js │ │ │ ├── prism-swift.min.js │ │ │ ├── prism-t4-cs.min.js │ │ │ ├── prism-t4-templating.min.js │ │ │ ├── prism-t4-vb.min.js │ │ │ ├── prism-tap.min.js │ │ │ ├── prism-tcl.min.js │ │ │ ├── prism-textile.min.js │ │ │ ├── prism-toml.min.js │ │ │ ├── prism-tsx.min.js │ │ │ ├── prism-tt2.min.js │ │ │ ├── prism-turtle.min.js │ │ │ ├── prism-twig.min.js │ │ │ ├── prism-typescript.min.js │ │ │ ├── prism-vala.min.js │ │ │ ├── prism-vbnet.min.js │ │ │ ├── prism-velocity.min.js │ │ │ ├── prism-verilog.min.js │ │ │ ├── prism-vhdl.min.js │ │ │ ├── prism-vim.min.js │ │ │ ├── prism-visual-basic.min.js │ │ │ ├── prism-wasm.min.js │ │ │ ├── prism-wiki.min.js │ │ │ ├── prism-xeora.min.js │ │ │ ├── prism-xojo.min.js │ │ │ ├── prism-xquery.min.js │ │ │ ├── prism-yaml.min.js │ │ │ ├── prism-zig.min.js │ │ │ ├── prism.js │ │ │ └── prismjs │ ├── svelte.config.js │ ├── vite.config.js │ ├── workers-site │ │ ├── .cargo-ok │ │ ├── .gitignore │ │ ├── index.js │ │ ├── package-lock.json │ │ └── package.json │ └── wrangler.toml ├── svast-stringify │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ └── main.ts │ └── test │ │ ├── compile.spec.ts │ │ └── fixtures │ │ ├── table_output.ts │ │ └── table_without_positions.ts ├── svast-utils │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── clean_positions.ts │ │ ├── main.ts │ │ └── walk.ts │ └── test │ │ ├── clean_positions.spec.ts │ │ ├── fixtures │ │ ├── table_with_positions.ts │ │ └── table_without_positions.ts │ │ └── walk.spec.ts ├── svast │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ └── package.json ├── svelte-parse │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── main.ts │ │ ├── types_and_things.ts │ │ └── void_els.ts │ └── test │ │ ├── blocks.spec.ts │ │ ├── element.spec.ts │ │ ├── expression.spec.ts │ │ ├── fixtures │ │ ├── 01-Button │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Collapse │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Contributors │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Dialog │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Dropdown │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Example │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Field │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Icon │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Input │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-InputOutputToggle │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-IntersectionObserver │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Lazy │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Message │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Modal │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Nav │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Notice │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Notices │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Notification │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-NotificationNotice │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-PreloadingIndicator │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Progress │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-ReplWidget │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-ScreenToggle │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Select │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Snackbar │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Switch │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Tab │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Tabs │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Tag │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Taglist │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-ThemeToggler │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Toast │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 01-Tooltip │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Alert-Alert │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Alert-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Alert-LongMessage │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Avatar-Avatar │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Avatar-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Avatar-Sizes │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Avatar-WithComponent │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Avatar-WithImage │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Button-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Button-Button │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Button-Icons │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Button-Options │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Button-SpinningLoader │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Button-Styling │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Button-Variations │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Card-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Card-Card │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Card-Clickable │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Card-Levels │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Checkbox-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Checkbox-Checkbox │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Checkbox-Disabled │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Chip-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Chip-Chip │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Chip-IsWaiting │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Chip-Removable │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Chip-WithAvatar │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-ContentSwitcher-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-ContentSwitcher-ContentSwitcher │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-DatePicker-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-DatePicker-DateFormat │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-DatePicker-DatePicker │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-DatePicker-DayNavigator │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-DatePicker-Inline │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-DatePicker-MinMax │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-DatePicker-Range │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-DatePicker-TextOnly │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-Custom │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-Dropdown │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-Hover │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-IsBlock │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-IsMulti │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-IsSearchable │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-ItemKey │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-MaxHeight │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-SelectedItem │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-SelectedItems │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-TotallyCustom │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-Width │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-_CustomDropdown │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-_CustomList │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-_DropdownMenu │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-_DropdownMenuDivider │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Dropdown-_DropdownMenuItem │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Form-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Form-Form │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Add │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Alert │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-AllIcons │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-ArrowDown │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-ArrowUp │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Car │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Check │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-ChevronLeft │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-ChevronRight │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Clock │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Close │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Copy │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Date │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Heart │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Hotel │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Information │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Lock │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-More │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Plane │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Remove │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Icons-Search │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Modal-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Modal-Modal │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Modal-Props │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Notification-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Notification-Notification │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-NumberInput-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-NumberInput-NumberInput │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Pagination-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Pagination-Pagination │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-ProgressBar-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-ProgressBar-ProgressBar │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Radio-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Radio-Radio │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-RangeSlider-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-RangeSlider-RangeSlider │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-RangeSlider-RangeSliderHandles │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-RangeSlider-RangeSliderSteps │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-RangeSlider-RangeSliderTooltips │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-RangeSlider-RangeSliderUpdateWhenSliding │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Search-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Search-Debounce │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Search-Placeholder │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Search-Search │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Spinner-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Spinner-Spinner │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Switch-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Switch-Switch │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Table-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Table-Table │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Tabs-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Tabs-Tabs │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Tabs-_tab1 │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Tabs-_tab2 │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Tag-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Tag-Tag │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-TextInput-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-TextInput-TextInput │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-TimeMenu-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-TimeMenu-TimeMenu │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-TimeMenu-_Menu │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-TimeMenu-_TimeOptions │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-TimeSelect-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-TimeSelect-TimeSelect │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Tooltip-Basic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 02-Tooltip-Tooltip │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-actions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-animate-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-classes-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-context-api-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-context-api-Map │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-context-api-MapMarker │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-debug-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-declaring-props-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-declaring-props-Nested │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-dom-events-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-easing-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-easing-Controls │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-easing-Grid │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-hello-world-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-if-blocks-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-onmount-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-reactive-assignments-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-slots-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-slots-Box │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-svelte-self-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-svelte-self-File │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-svelte-self-Folder │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-text-inputs-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-transition-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-tweened-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-writable-stores-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-writable-stores-Decrementer │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-writable-stores-Incrementer │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-00-writable-stores-Resetter │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-adding-parameters-to-actions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-adding-parameters-to-transitions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-auto-subscriptions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-auto-subscriptions-Decrementer │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-auto-subscriptions-Incrementer │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-auto-subscriptions-Resetter │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-class-shorthand-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-clock-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-default-values-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-default-values-Nested │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-dynamic-attributes-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-else-blocks-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-hacker-news-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-hacker-news-Comment │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-hacker-news-Item │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-hacker-news-List │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-hacker-news-Summary │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-inline-handlers-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-module-exports-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-module-exports-AudioPlayer │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-numeric-inputs-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-ondestroy-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-reactive-declarations-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-slot-fallbacks-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-slot-fallbacks-Box │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-spring-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-svelte-component-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-svelte-component-BlueThing │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-svelte-component-GreenThing │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-01-svelte-component-RedThing │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-bar-chart-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-checkbox-inputs-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-else-if-blocks-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-event-modifiers-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-immutable-data-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-immutable-data-ImmutableTodo │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-immutable-data-MutableTodo │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-in-and-out-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-named-slots-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-named-slots-ContactCard │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-reactive-statements-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-readable-stores-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-spread-props-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-spread-props-Info │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-styling-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-svelte-window-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-02-update-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-area-chart-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-component-events-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-component-events-Inner │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-custom-css-transitions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-derived-stores-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-each-blocks-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-group-inputs-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-nested-components-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-nested-components-Nested │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-slot-props-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-slot-props-Hoverable │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-svelte-window-bindings-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-03-tick-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-custom-js-transitions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-custom-stores-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-event-forwarding-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-event-forwarding-Inner │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-event-forwarding-Outer │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-html-tags-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-keyed-each-blocks-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-keyed-each-blocks-Thing │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-modal-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-modal-Modal │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-scatterplot-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-scatterplot-Scatterplot │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-svelte-body-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-04-textarea-inputs-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-05-await-blocks-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-05-dom-event-forwarding-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-05-dom-event-forwarding-CustomButton │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-05-file-inputs-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-05-svelte-head-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-05-svg-transitions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-05-transition-events-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-06-deferred-transitions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-06-select-bindings-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-07-multiple-select-bindings-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-08-each-block-bindings-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-09-media-elements-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-10-dimensions-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-11-bind-this-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-12-component-bindings-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-12-component-bindings-Keypad │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-button-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-container-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-css-in-js-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-css-in-js-Hero │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-divider-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-flag-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-header-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-icon-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-image-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-input-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-loader-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-placeholder-Line │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-placeholder-Paragraph │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-placeholder-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-rail-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-reveal-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-segment-SegmentGroup │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-segment-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-step-StepContent │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-step-StepDescription │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-step-StepGroup │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-step-StepTitle │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-step-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-text-index │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── 03-write-less-code-App │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── action-with-call │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── action-with-identifier │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── action-with-literal │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── action │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── animation │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-containing-solidus │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-dynamic-boolean │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-dynamic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-escaped │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-multiple │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-shorthand │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-static-boolean │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-static │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-unique-binding-error │ │ │ ├── error.json │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-unique-error │ │ │ ├── error.json │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-unique-shorthand-error │ │ │ ├── error.json │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-unquoted │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── attribute-with-whitespace │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── await-catch │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── await-then-catch │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── binding-shorthand │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── binding │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── comment │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── component-dynamic │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── convert-entities-in-element │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── convert-entities │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── css │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── dynamic-import │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── each-block-destructured │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── each-block-else │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── each-block-indexed │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── each-block-keyed │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── each-block │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── element-with-mustache │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── element-with-text │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── elements │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── event-handler │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── generate.ts │ │ ├── if-block-else │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── if-block-elseif │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── if-block │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── nbsp │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── no-error-if-before-closing │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── raw-mustaches-whitespace-error │ │ │ ├── error.json │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── raw-mustaches │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── refs │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── script-comment-only │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── script-comment-trailing-multiline │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── script-comment-trailing │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── script │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── self-closing-element │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── self-reference │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── space-between-mustaches │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── spread │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── textarea-children │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── transition-intro-no-params │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── transition-intro │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── unusual-identifier │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── whitespace-leading-trailing │ │ │ ├── input.svelte │ │ │ └── output.json │ │ └── whitespace-normal │ │ │ ├── input.svelte │ │ │ └── output.json │ │ ├── positions.spec.ts │ │ ├── samples.spec.ts │ │ └── siblings.spec.ts ├── template │ ├── CHANGELOG.md │ ├── README.md │ ├── index.js │ ├── package.json │ └── pnpm-lock.yaml └── test-app │ ├── .gitignore │ ├── .npmrc │ ├── README.md │ ├── e2e │ ├── compile-browser.test.ts │ ├── compile-server.test.ts │ └── preprocess.test.ts │ ├── package.json │ ├── playwright.config.ts │ ├── src │ ├── app.d.ts │ ├── app.html │ ├── lib │ │ ├── Layout.svelte │ │ └── index.ts │ └── routes │ │ ├── +layout.svelte │ │ ├── +page.svelte │ │ ├── compile-browser │ │ └── +page.svelte │ │ ├── compile │ │ ├── +page.server.ts │ │ └── +page.svelte │ │ ├── mono.css │ │ ├── preprocess │ │ └── +page.svx │ │ ├── prism.css │ │ └── style.css │ ├── static │ └── favicon.png │ ├── svelte.config.js │ ├── tsconfig.json │ └── vite.config.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── tsconfig.json └── vite.config.ts /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@1.3.0/schema.json", 3 | "changelog": ["@changesets/changelog-github", { "repo": "pngwn/MDsveX" }], 4 | "commit": false, 5 | "linked": [], 6 | "access": "public", 7 | "baseBranch": "master", 8 | "updateInternalDependencies": "patch", 9 | "ignore": ["@mdsvex/site", "mdsvex-demo"] 10 | } 11 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | indent_style = tabs 7 | indent_size = 2 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | 11 | [test/**/expected.css] 12 | insert_final_newline = false 13 | 14 | [{package.json,.travis.yml,.eslintrc.json}] 15 | indent_style = space 16 | indent_size = 2 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # macOS stuff 3 | .DS_Store 4 | .AppleDouble 5 | .LSOverride 6 | 7 | # duh 8 | node_modules 9 | 10 | # build 11 | dist 12 | 13 | # logs 14 | logs 15 | *.log 16 | npm-debug.log* 17 | yarn-debug.log* 18 | yarn-error.log* 19 | 20 | # testy stuff 21 | coverage 22 | .nyc_output 23 | 24 | # editor 25 | .vscode/* 26 | !.vscode/settings.json 27 | !.vscode/tasks.json 28 | !.vscode/launch.json 29 | !.vscode/extensions.json 30 | 31 | #config 32 | config.js 33 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | link-workspace-packages = true 2 | prefer-workspace-packages = true -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | **/test/_fixtures/**/* 3 | **/test/fixtures/**/* 4 | **/site/**/* 5 | pnpm-lock.yaml 6 | .changeset/**/* 7 | **/dist/**/* 8 | **/CHANGELOG.md 9 | **/mdsvex-demo/**/* -------------------------------------------------------------------------------- /.prettierrc.yaml: -------------------------------------------------------------------------------- 1 | useTabs: true 2 | singleQuote: true 3 | trailingComma: 'es5' 4 | -------------------------------------------------------------------------------- /packages/mdsvex/decs.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'remark-containers'; 2 | declare module 'remark-autolink-headings'; 3 | declare module 'remark-slug'; 4 | declare module 'rehype-slug'; 5 | -------------------------------------------------------------------------------- /packages/mdsvex/globals.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.svx' { 2 | import type { SvelteComponent } from 'svelte'; 3 | 4 | export default class Comp extends SvelteComponent {} 5 | 6 | export const metadata: Record; 7 | } 8 | 9 | declare module '*.svelte.md' { 10 | import type { SvelteComponent } from 'svelte'; 11 | 12 | export default class Comp extends SvelteComponent {} 13 | 14 | export const metadata: Record; 15 | } 16 | -------------------------------------------------------------------------------- /packages/mdsvex/src/define-config.ts: -------------------------------------------------------------------------------- 1 | import { MdsvexOptions } from './types'; 2 | 3 | export const defineConfig = (config: MdsvexOptions) => config; 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/Layout.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/LayoutThree.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/LayoutThreeWithComponents.svelte: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/LayoutTwo.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/LayoutTwoWithComponents.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/LayoutWithComponents.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/code-escaping.svx: -------------------------------------------------------------------------------- 1 | # hello 2 | 3 | ```js 4 | function some_func(prop1, prop2) { 5 | return { prop1, prop2 }; 6 | } 7 | ``` 8 | 9 | 10 | Hello I am a parapgraph with some `{ code }`. 11 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/code-highlight-nesting.svx: -------------------------------------------------------------------------------- 1 | ````md 2 | ```js 3 | function my_function(string) 4 | return string.toUpperCase(); 5 | ``` 6 | ```` 7 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/component-children.svx: -------------------------------------------------------------------------------- 1 | 2 | My Title 3 | 4 | 8 | 9 | 10 | 11 | 12 | # hello 13 | 14 | this is some markdown 15 | 16 | 17 | 18 | > 19 | > 20 | > # hello 21 | > 22 | > text 23 | > 24 | > 25 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/component-simple-00.svx: -------------------------------------------------------------------------------- 1 | # Hello World 2 | 3 | I am a paragraph. 4 | 5 |

I am also a paragraph

6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/component-simple-01.svx: -------------------------------------------------------------------------------- 1 | # Hello World 2 | 3 | I am a paragraph. 4 | 5 | 6 | 7 |

I am also a paragraph

8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/component-simple-02.svx: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/component-simple-03.svx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | val >= 27 ? runFunc() : runFunc2() } /> 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/component-simple-04.svx: -------------------------------------------------------------------------------- 1 | This is my 2 | 3 | # 4 | 5 | > This is a quotation 6 | > 7 | > 8 | 9 | This is my __ and it is exciting 10 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/dollar-one-in-frontmatter.svx: -------------------------------------------------------------------------------- 1 | --- 2 | price: '$10' 3 | --- 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/input/tags-in-frontmatter.svx: -------------------------------------------------------------------------------- 1 | --- 2 | title: An article about and 3 | --- 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/output/component-children.svelte: -------------------------------------------------------------------------------- 1 | 2 | My Title 3 | 4 | 8 | 9 | 10 | 11 |

hello

12 |

this is some markdown

13 |
14 |
15 | 16 |

hello

17 |

text

18 |
19 |
20 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/output/component-simple-00.svelte: -------------------------------------------------------------------------------- 1 |

Hello World

2 |

I am a paragraph.

3 |

I am also a paragraph

4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/output/component-simple-01.svelte: -------------------------------------------------------------------------------- 1 |

Hello World

2 |

I am a paragraph.

3 | 4 |

I am also a paragraph

5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/output/component-simple-02.svelte: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/output/component-simple-03.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | val >= 27 ? runFunc() : runFunc2() } /> 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/output/component-simple-04.svelte: -------------------------------------------------------------------------------- 1 |

This is my

2 |

3 |
4 |

This is a quotation

5 | 6 |
7 |

This is my and it is exciting

8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/output/dollar-one-in-frontmatter.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/hybrid/output/tags-in-frontmatter.svelte: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/anchors-followed-by-brakets.md: -------------------------------------------------------------------------------- 1 | This is a [link](https://en.wikipedia.org/wiki/Textile) (some other text) 2 | 3 | This is a [link](https://en.wikipedia.org/wiki/Textile_(markup)) (some other text) 4 | 5 | This is a [link](https://en.wikipedia.org/wiki/Textile_(markup_language)) (some other text) 6 | 7 | This is a [link](https://en.wikipedia.org/wiki/Textile_(markup_language)/foo) (some other text) 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/automatic-anchors.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/blockquote-followed-by-code.md: -------------------------------------------------------------------------------- 1 | > a blockquote 2 | with a 4 space indented line (not code) 3 | 4 | sep 5 | 6 | > a blockquote 7 | 8 | ``` 9 | with some code after 10 | ``` 11 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/blockquote-inside-code.md: -------------------------------------------------------------------------------- 1 | ``` 2 | > this is a pseudo blockquote 3 | > inside a code block 4 | ``` 5 | 6 | foo 7 | 8 | ``` 9 | > this is another bq 10 | inside code 11 | ``` 12 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/blockquote-nested-markdown.md: -------------------------------------------------------------------------------- 1 | > ## This is a header. 2 | > 3 | > 1. This is the first list item. 4 | > 2. This is the second list item. 5 | > 6 | > Here's some example code: 7 | > 8 | > ``` 9 | > return shell_exec("echo $input | $markdown_script"); 10 | > ``` 11 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/blockquote.md: -------------------------------------------------------------------------------- 1 | 2 | > This is a multi line blockquote test 3 | > 4 | > With more than one line. 5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/code-block-html-escape.md: -------------------------------------------------------------------------------- 1 | 2 | This is some HTML: 3 | 4 | ``` 5 |

Heading

6 | ``` 7 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/code-block-with-special-chars.md: -------------------------------------------------------------------------------- 1 | ``` 2 | //**this** code _has_ special chars 3 | var arr = ['foo', 'bar', 'baz']; 4 | function () { 5 | return 'foo'; 6 | } 7 | \n 8 | ``` 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/code-block.md: -------------------------------------------------------------------------------- 1 | 2 | This is a normal paragraph: 3 | 4 | ``` 5 | This is a code block. 6 | ``` 7 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/double-emphasis.md: -------------------------------------------------------------------------------- 1 | a ___strong and em___ thingy 2 | 3 | bar___bazinga___bar 4 | 5 | a ***strong and em*** thingy 6 | 7 | bar***bazinga***bar 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/doubline-list.md: -------------------------------------------------------------------------------- 1 | 2 | * Bird 3 | 4 | * Magic 5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/ellipsis.md: -------------------------------------------------------------------------------- 1 | ellipsis in text... 2 | 3 | ... 4 | 5 | 1. foo... 6 | 2. bar 7 | 8 | > ellipsis in blockquote... 9 | 10 | ``` 11 | ellipsis in code... 12 | ``` 13 | 14 | ``` 15 | ellipsis in code... 16 | ``` 17 | 18 | # ellipsis in header... 19 | 20 | 1... 21 | 22 | 1. .. 23 | 24 | 1... 25 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/emphasis-inside-inline-code.md: -------------------------------------------------------------------------------- 1 | some text `**foo**` 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/encodeHTMLCodeTags.md: -------------------------------------------------------------------------------- 1 | this is code some text yeah! 2 | 3 |

4 | 
foo
5 |
6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/escaped-html-taglikes.md: -------------------------------------------------------------------------------- 1 | awa \ 2 | 3 | awoo \ 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/escaped-number-period.md: -------------------------------------------------------------------------------- 1 | It happened in 1986\. What a great season. 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/escaping.md: -------------------------------------------------------------------------------- 1 | 2 | These should all be escaped: 3 | 4 | \\ 5 | 6 | \` 7 | 8 | \* 9 | 10 | \_ 11 | 12 | \{ 13 | 14 | \} 15 | 16 | \[ 17 | 18 | \] 19 | 20 | \( 21 | 22 | \) 23 | 24 | \# 25 | 26 | \+ 27 | 28 | \- 29 | 30 | \. 31 | 32 | \! 33 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/github-style-at-start.md: -------------------------------------------------------------------------------- 1 | ``` 2 | function MyFunc(a) { 3 | // ... 4 | } 5 | ``` 6 | 7 | That is some code! 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/github-style-codeblock-inside-quote.md: -------------------------------------------------------------------------------- 1 | > Define a function in javascript: 2 | > 3 | > ``` 4 | > function MyFunc(a) { 5 | > var s = '`'; 6 | > } 7 | > ``` 8 | > 9 | >> And some nested quote 10 | >> 11 | >> ```html 12 | >>
HTML!
13 | >> ``` 14 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/github-style-linebreaks.md: -------------------------------------------------------------------------------- 1 | ``` 2 | code can go here 3 | this is rendered on a second line 4 | ``` 5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h1-with-double-hash.md: -------------------------------------------------------------------------------- 1 | # This is an H1 # 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h1-with-equals.md: -------------------------------------------------------------------------------- 1 | This is an H1 2 | ============= 3 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h1-with-single-hash.md: -------------------------------------------------------------------------------- 1 | # This is an H1 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h2-with-dashes.md: -------------------------------------------------------------------------------- 1 | This is an H2 2 | ------------- 3 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h2-with-double-hash.md: -------------------------------------------------------------------------------- 1 | ## This is an H2 ## 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h2-with-single-hash.md: -------------------------------------------------------------------------------- 1 | ## This is an H2 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h3-with-double-hash.md: -------------------------------------------------------------------------------- 1 | ### This is an H3 ### 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h3-with-single-hash.md: -------------------------------------------------------------------------------- 1 | ### This is an H3 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h4-with-single-hash.md: -------------------------------------------------------------------------------- 1 | #### This is an H4 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h5-with-single-hash.md: -------------------------------------------------------------------------------- 1 | ##### This is an H5 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/h6-with-single-hash.md: -------------------------------------------------------------------------------- 1 | ###### This is an H6 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/horizontal-rules.md: -------------------------------------------------------------------------------- 1 | 2 | * * * 3 | 4 | *** 5 | 6 | ***** 7 | 8 | - - - 9 | 10 | --------------------------------------- 11 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/html-comments.md: -------------------------------------------------------------------------------- 1 | 2 | 3 |

words words

4 | words 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/html-inside-listed-code.md: -------------------------------------------------------------------------------- 1 | - list item 1 2 | 3 | ```html 4 | google 5 |
6 |
some div
7 |
8 | ``` 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/images-followed-by-brackets.md: -------------------------------------------------------------------------------- 1 | ![image link](<./image/cat1.png>)(some text between brackets) 2 | 3 | ![image link](<./image/cat(1).png>)(some text between brackets) 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/images.md: -------------------------------------------------------------------------------- 1 | ![Alt text](/path/to/img.jpg) 2 | 3 | ![Alt text](/path/to/img.jpg "Optional title") 4 | 5 | ![Alt text][id] 6 | 7 | ![My Image] 8 | 9 | ![leave me alone] 10 | 11 | ![leave me alone][] 12 | 13 | [id]: url/to/image.jpg "Optional title attribute" 14 | [My Image]: url/to/image2.jpg "Optional title attribute" 15 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/implicit-anchors.md: -------------------------------------------------------------------------------- 1 | Search the web at [Google][] or [Daring Fireball][]. 2 | 3 | Search the web at [Google] or [Daring Fireball]. 4 | 5 | 6 | [Google]: http://google.com/ 7 | [Daring Fireball]: http://daringfireball.net/ 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/inline-anchors.md: -------------------------------------------------------------------------------- 1 | This is [an example](http://example.com/ "Title") inline link. 2 | 3 | [This link](http://example.net/) has no title attribute. 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/inline-code.md: -------------------------------------------------------------------------------- 1 | Create a new `function`. 2 | 3 | Use the backtick in MySQL syntax ``SELECT `column` FROM whatever``. 4 | 5 | A single backtick in a code span: `` ` `` 6 | 7 | A backtick-delimited string in a code span: `` `foo` `` 8 | 9 | Please don't use any `` tags. 10 | 11 | `—` is the decimal-encoded equivalent of `—`. 12 | 13 | this `inline **code** has ___magic___` chars 14 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/inline-escaped-chars.md: -------------------------------------------------------------------------------- 1 | Hello.this\_is\_a\_variable 2 | and.this.is.another_one 3 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/inline-style-tag.md: -------------------------------------------------------------------------------- 1 | 4 | 5 | An exciting sentence. 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/lazy-blockquote.md: -------------------------------------------------------------------------------- 1 | > This is a multi line blockquote test 2 | 3 | > With more than one line. 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/line-starts-with-html.md: -------------------------------------------------------------------------------- 1 | some text words 2 | 3 |
words 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/list-followed-by-blockquote.md: -------------------------------------------------------------------------------- 1 | # some title 2 | 3 | 1. list item 1 4 | 2. list item 2 5 | 6 | > some text in a blockquote 7 | 8 | * another list item 1 9 | * another list item 2 10 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/list-followed-by-ghcode.md: -------------------------------------------------------------------------------- 1 | # some title 2 | 3 | 1. list item 1 4 | 2. list item 2 5 | 6 | ``` 7 | some code 8 | 9 | and some other line of code 10 | ``` 11 | 12 | * another list item 1 13 | * another list item 2 14 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/list-with-blockquote.md: -------------------------------------------------------------------------------- 1 | * A list item with a blockquote: 2 | 3 | > This is a blockquote 4 | > inside a list item. 5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/literal-html-tags.md: -------------------------------------------------------------------------------- 1 | some **code** yeah 2 | 3 | some inline **code** block 4 | 5 | some inline **code** block 6 | 7 | yo dawg some code inception 8 | 9 |
some **div** yeah
10 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/multi-paragraph-list.md: -------------------------------------------------------------------------------- 1 | 1. This is a major bullet point. 2 | 3 | That contains multiple paragraphs. 4 | 5 | 2. And another line 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/multiline-unordered-list.md: -------------------------------------------------------------------------------- 1 | - This line spans 2 | more than one line and is lazy 3 | - Similar to this line 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/nested-blockquote.md: -------------------------------------------------------------------------------- 1 | > This is a multi line blockquote test 2 | > 3 | > > And nesting! 4 | > 5 | > With more than one line. 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/nested-gh-codeblocks.md: -------------------------------------------------------------------------------- 1 | ``` 2 | 1. some code idented 4 spaces 3 | 4 | ``` 5 | var foobar = 'foo'; 6 | ``` 7 | 8 | 2. another line 9 | ``` 10 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/obfuscated-emails.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngwn/MDsveX/5784c451fa9892ff44b7398a8add2140b3c0cec3/packages/mdsvex/test/_fixtures/markdown/input/obfuscated-emails.md -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/ordered-list-same-number.md: -------------------------------------------------------------------------------- 1 | 1. Red 2 | 1. Green 3 | 1. Blue 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/ordered-list-starting-number.md: -------------------------------------------------------------------------------- 1 | 5. foo 2 | 6. bar 3 | 7. baz 4 | 5 | --- 6 | 7 | 3. a 8 | 2. b 9 | 7. c 10 | 23. d 11 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/ordered-list-wrong-numbers.md: -------------------------------------------------------------------------------- 1 | 1. Red 2 | 1. Green 3 | 1. Blue 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/ordered-list.md: -------------------------------------------------------------------------------- 1 | 1. Red 2 | 2. Green 3 | 3. Blue 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/paragraphed-list-with-sublists.md: -------------------------------------------------------------------------------- 1 | - foo 2 | 3 | - bazinga 4 | 5 | - yeah 6 | 7 | - bar 8 | 9 | 1. damn 10 | 11 | 2. so many paragraphs 12 | 13 | - baz 14 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/pre-code-tags-inside-code-block.md: -------------------------------------------------------------------------------- 1 | code inception 2 | 3 | ``` 4 |

5 | 
some html code inside code html tags inside a fenced code block
6 |
7 | ``` 8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/pre-code-tags.md: -------------------------------------------------------------------------------- 1 |
 2 | 
 3 | foobar
 4 | 
 5 | 
6 | 7 | blabla 8 | 9 |
10 | 
11 | foobar
12 | 
13 | 
14 | 15 |
16 | 
17 | 
some html code
18 |
19 |
20 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/relative-anchors.md: -------------------------------------------------------------------------------- 1 | See my [About](/about/) page for details. 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/repeated-headers.md: -------------------------------------------------------------------------------- 1 | # Same Title 2 | 3 | some text 4 | 5 | # Same Title 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/simple-paragraph.md: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/strip-references.md: -------------------------------------------------------------------------------- 1 | [1]: http://www.google.co.uk 2 | 3 | [http://www.google.co.uk]: http://www.google.co.uk 4 | 5 | 6 | 7 | 8 | 9 | [1]: http://dsurl.stuff/something.jpg 10 | 11 | [1]:http://www.google.co.uk 12 | 13 | [1]:http://www.google.co.uk 14 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/strong.md: -------------------------------------------------------------------------------- 1 | **important** 2 | 3 | __important__ 4 | 5 | really **freaking**strong 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/unordered-list-asterisk.md: -------------------------------------------------------------------------------- 1 | * Red 2 | * Green 3 | * Blue 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/unordered-list-minus.md: -------------------------------------------------------------------------------- 1 | - Red 2 | - Green 3 | - Blue 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/unordered-list-plus.md: -------------------------------------------------------------------------------- 1 | + Red 2 | + Green 3 | + Blue 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/input/url-with-parenthesis.md: -------------------------------------------------------------------------------- 1 | There's an [episode](http://en.memory-alpha.org/wiki/Darmok_(episode)) of Star Trek: The Next Generation 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/automatic-anchors.html: -------------------------------------------------------------------------------- 1 |

http://example.com/

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/blockquote-followed-by-code.html: -------------------------------------------------------------------------------- 1 |
2 |

a blockquote 3 | with a 4 space indented line (not code)

4 |
5 |

sep

6 |
7 |

a blockquote

8 |
9 |
with some code after
10 | 
11 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/blockquote-inside-code.html: -------------------------------------------------------------------------------- 1 |
> this is a pseudo blockquote
2 | > inside a code block
3 | 
4 |

foo

5 |
> this is another bq
6 | inside code
7 | 
8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/blockquote-nested-markdown.html: -------------------------------------------------------------------------------- 1 |
2 |

This is a header.

3 |
    4 |
  1. This is the first list item.
  2. 5 |
  3. This is the second list item.
  4. 6 |
7 |

Here's some example code:

8 |
return shell_exec("echo $input | $markdown_script");
 9 | 
10 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/blockquote.html: -------------------------------------------------------------------------------- 1 |
2 |

This is a multi line blockquote test

3 |

With more than one line.

4 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/code-block-html-escape.html: -------------------------------------------------------------------------------- 1 |

This is some HTML:

2 |
<h1>Heading</h1>
3 | 
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/code-block-with-special-chars.html: -------------------------------------------------------------------------------- 1 |
//**this** code _has_ special chars
2 | var arr = ['foo', 'bar', 'baz'];
3 | function () {
4 |     return 'foo';
5 | }
6 | \n
7 | 
8 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/code-block.html: -------------------------------------------------------------------------------- 1 |

This is a normal paragraph:

2 |
This is a code block.
3 | 
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/double-emphasis.html: -------------------------------------------------------------------------------- 1 |

a strong and em thingy

2 |

barbazingabar

3 |

a strong and em thingy

4 |

barbazingabar

5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/doubline-list.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    Bird

    4 |
  • 5 |
  • 6 |

    Magic

    7 |
  • 8 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/ellipsis.html: -------------------------------------------------------------------------------- 1 |

ellipsis in text...

2 |

...

3 |
    4 |
  1. foo...
  2. 5 |
  3. bar
  4. 6 |
7 |
8 |

ellipsis in blockquote...

9 |
10 |
ellipsis in code...
11 | 
12 |
ellipsis in code...
13 | 
14 |

ellipsis in header...

15 |

1...

16 |
    17 |
  1. ..
  2. 18 |
19 |

1...

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/emphasis-inside-inline-code.html: -------------------------------------------------------------------------------- 1 |

some text **foo**

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/encodeHTMLCodeTags.html: -------------------------------------------------------------------------------- 1 |

this is code some text yeah!

2 |

3 | 
foo
4 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/escaped-html-taglikes.html: -------------------------------------------------------------------------------- 1 |

awa <hi>

2 |

awoo <heyoo

3 |

And what happens when I escape like <this>?

4 |

This one shouldn't be \

5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/escaped-number-period.html: -------------------------------------------------------------------------------- 1 |

It happened in 1986. What a great season.

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/escaping.html: -------------------------------------------------------------------------------- 1 |

These should all be escaped:

2 |

\

3 |

`

4 |

*

5 |

_

6 |

{

7 |

}

8 |

[

9 |

]

10 |

(

11 |

)

12 |

#

13 |

+

14 |

-

15 |

.

16 |

!

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/github-style-at-start.html: -------------------------------------------------------------------------------- 1 |
function MyFunc(a) {
2 |     // ...
3 | }
4 | 
5 |

That is some code!

6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/github-style-codeblock-inside-quote.html: -------------------------------------------------------------------------------- 1 |
2 |

Define a function in javascript:

3 |
function MyFunc(a) {
 4 |     var s = '`';
 5 | }
 6 | 
7 |
8 |

And some nested quote

9 |
<div>HTML!</div>
10 | 
11 |
12 |
13 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/github-style-linebreaks.html: -------------------------------------------------------------------------------- 1 |
code can go here
2 | this is rendered on a second line
3 | 
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h1-with-double-hash.html: -------------------------------------------------------------------------------- 1 |

This is an H1

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h1-with-equals.html: -------------------------------------------------------------------------------- 1 |

This is an H1

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h1-with-single-hash.html: -------------------------------------------------------------------------------- 1 |

This is an H1

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h2-with-dashes.html: -------------------------------------------------------------------------------- 1 |

This is an H2

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h2-with-double-hash.html: -------------------------------------------------------------------------------- 1 |

This is an H2

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h2-with-single-hash.html: -------------------------------------------------------------------------------- 1 |

This is an H2

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h3-with-double-hash.html: -------------------------------------------------------------------------------- 1 |

This is an H3

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h3-with-single-hash.html: -------------------------------------------------------------------------------- 1 |

This is an H3

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h4-with-single-hash.html: -------------------------------------------------------------------------------- 1 |

This is an H4

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h5-with-single-hash.html: -------------------------------------------------------------------------------- 1 |
This is an H5
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/h6-with-single-hash.html: -------------------------------------------------------------------------------- 1 |
This is an H6
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/horizontal-rules.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/html-comments.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

words words

4 | words 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/html-inside-listed-code.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    list item 1

    4 |
    <a href="www.google.com">google</a>
     5 | <div>
     6 |   <div>some div</div>
     7 | </div>
     8 | 
    9 |
  • 10 |
11 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/images-followed-by-brackets.html: -------------------------------------------------------------------------------- 1 |

image link(some text between brackets)

2 |

image link(some text between brackets)

3 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/images.html: -------------------------------------------------------------------------------- 1 |

Alt text

2 |

Alt text

3 |

Alt text

4 |

My Image

5 |

![leave me alone]

6 |

![leave me alone][]

7 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/implicit-anchors.html: -------------------------------------------------------------------------------- 1 |

Search the web at Google or Daring Fireball.

2 |

Search the web at Google or Daring Fireball.

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/inline-anchors.html: -------------------------------------------------------------------------------- 1 |

This is an example inline link.

2 |

This link has no title attribute.

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/inline-escaped-chars.html: -------------------------------------------------------------------------------- 1 |

Hello.this_is_a_variable 2 | and.this.is.another_one

3 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/inline-style-tag.html: -------------------------------------------------------------------------------- 1 | 4 |

An exciting sentence.

5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/lazy-blockquote.html: -------------------------------------------------------------------------------- 1 |
2 |

This is a multi line blockquote test

3 |
4 |
5 |

With more than one line.

6 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/line-starts-with-html.html: -------------------------------------------------------------------------------- 1 | some text words 2 |
words 3 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/list-followed-by-blockquote.html: -------------------------------------------------------------------------------- 1 |

some title

2 |
    3 |
  1. list item 1
  2. 4 |
  3. list item 2
  4. 5 |
6 |
7 |

some text in a blockquote

8 |
9 |
    10 |
  • another list item 1
  • 11 |
  • another list item 2
  • 12 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/list-followed-by-ghcode.html: -------------------------------------------------------------------------------- 1 |

some title

2 |
    3 |
  1. list item 1
  2. 4 |
  3. list item 2
  4. 5 |
6 |
some code
 7 | 
 8 | and some other line of code
 9 | 
10 |
    11 |
  • another list item 1
  • 12 |
  • another list item 2
  • 13 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/list-with-blockquote.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    A list item with a blockquote:

    4 |
    5 |

    This is a blockquote 6 | inside a list item.

    7 |
    8 |
  • 9 |
10 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/list-with-code.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    A list item with code:

    4 |
    alert('Hello world!');
    5 | 
    6 |
  • 7 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/literal-html-tags.html: -------------------------------------------------------------------------------- 1 |

some code yeah

2 |

some inline code block

3 |

some inline code block

4 |

yo dawg some code inception

5 |
some **div** yeah
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/multi-paragraph-list.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. 3 |

    This is a major bullet point.

    4 |

    That contains multiple paragraphs.

    5 |
  2. 6 |
  3. 7 |

    And another line

    8 |
  4. 9 |
10 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/multiline-unordered-list.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • This line spans 3 | more than one line and is lazy
  • 4 |
  • Similar to this line
  • 5 |
6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/nested-blockquote.html: -------------------------------------------------------------------------------- 1 |
2 |

This is a multi line blockquote test

3 |
4 |

And nesting!

5 |
6 |

With more than one line.

7 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/nested-gh-codeblocks.html: -------------------------------------------------------------------------------- 1 |
1. some code idented 4 spaces
2 | 
3 |     ```
4 |     var foobar = 'foo';
5 |     ```
6 | 
7 | 2. another line
8 | 
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/obfuscated-emails.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngwn/MDsveX/5784c451fa9892ff44b7398a8add2140b3c0cec3/packages/mdsvex/test/_fixtures/markdown/output/obfuscated-emails.html -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/ordered-list-same-number.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. Red
  2. 3 |
  3. Green
  4. 4 |
  5. Blue
  6. 5 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/ordered-list-starting-number.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. foo
  2. 3 |
  3. bar
  4. 4 |
  5. baz
  6. 5 |
6 |
7 |
    8 |
  1. a
  2. 9 |
  3. b
  4. 10 |
  5. c
  6. 11 |
  7. d
  8. 12 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/ordered-list-wrong-numbers.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. Red
  2. 3 |
  3. Green
  4. 4 |
  5. Blue
  6. 5 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/ordered-list.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. Red
  2. 3 |
  3. Green
  4. 4 |
  5. Blue
  6. 5 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/paragraphed-list-with-sublists.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    foo

    4 |
      5 |
    • 6 |

      bazinga

      7 |
    • 8 |
    • 9 |

      yeah

      10 |
    • 11 |
    12 |
  • 13 |
  • 14 |

    bar

    15 |
      16 |
    1. 17 |

      damn

      18 |
    2. 19 |
    3. 20 |

      so many paragraphs

      21 |
    4. 22 |
    23 |
  • 24 |
  • 25 |

    baz

    26 |
  • 27 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/pre-code-tags-inside-code-block.html: -------------------------------------------------------------------------------- 1 |

code inception

2 |
<pre><code>
3 | <div>some html code inside code html tags inside a fenced code block</div>
4 | </code></pre>
5 | 
6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/pre-code-tags.html: -------------------------------------------------------------------------------- 1 |
 2 | 
 3 | foobar
 4 | 
 5 | 
6 |

blabla

7 |
 8 | 
 9 | foobar
10 | 
11 | 
12 |
13 | 
14 | 
some html code
15 |
16 |
17 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/relative-anchors.html: -------------------------------------------------------------------------------- 1 |

See my About page for details.

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/repeated-headers.html: -------------------------------------------------------------------------------- 1 |

Same Title

2 |

some text

3 |

Same Title

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/simple-paragraph.html: -------------------------------------------------------------------------------- 1 |

Hello, world!

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/strip-references.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pngwn/MDsveX/5784c451fa9892ff44b7398a8add2140b3c0cec3/packages/mdsvex/test/_fixtures/markdown/output/strip-references.html -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/strong.html: -------------------------------------------------------------------------------- 1 |

important

2 |

important

3 |

really freakingstrong

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/unordered-list-asterisk.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • Red
  • 3 |
  • Green
  • 4 |
  • Blue
  • 5 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/unordered-list-minus.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • Red
  • 3 |
  • Green
  • 4 |
  • Blue
  • 5 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/unordered-list-plus.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • Red
  • 3 |
  • Green
  • 4 |
  • Blue
  • 5 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/markdown/output/url-with-parenthesis.html: -------------------------------------------------------------------------------- 1 |

There's an episode of Star Trek: The Next Generation

5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/00-hello-world/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |

Hello {name}!

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/00-hello-world/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Hello world" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/01-dynamic-attributes/App.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | {name} dancing -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/01-dynamic-attributes/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Dynamic attributes" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/02-styling/App.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 |

Styled!

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/02-styling/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Styling" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/03-nested-components/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | 13 |

These styles...

14 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/03-nested-components/Nested.svelte: -------------------------------------------------------------------------------- 1 |

...don't affect this element

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/03-nested-components/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Nested components" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/04-html-tags/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |

{@html string}

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/04-html-tags/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "HTML tags" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/00-introduction/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Introduction" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/01-reactivity/00-reactive-assignments/App.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/01-reactivity/00-reactive-assignments/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Reactive assignments" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/01-reactivity/01-reactive-declarations/App.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | 16 | 17 |

{count} * 2 = {doubled}

18 |

{doubled} * 2 = {quadrupled}

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/01-reactivity/01-reactive-declarations/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Reactive declarations" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/01-reactivity/02-reactive-statements/App.svelte: -------------------------------------------------------------------------------- 1 | 13 | 14 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/01-reactivity/02-reactive-statements/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Reactive statements" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/01-reactivity/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Reactivity" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/00-declaring-props/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/00-declaring-props/Nested.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |

The answer is {answer}

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/00-declaring-props/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Declaring props" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/01-default-values/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/01-default-values/Nested.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |

The answer is {answer}

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/01-default-values/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Default values" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/02-spread-props/App.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/02-spread-props/Info.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 |

9 | The {name} package is {speed} fast. 10 | Download version {version} from npm 11 | and learn more here 12 |

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/02-spread-props/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Spread props" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/02-props/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Props" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/00-if-blocks/App.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | {#if user.loggedIn} 10 | 13 | {/if} 14 | 15 | {#if !user.loggedIn} 16 | 19 | {/if} -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/00-if-blocks/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "If blocks" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/01-else-blocks/App.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | {#if user.loggedIn} 10 | 13 | {:else} 14 | 17 | {/if} -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/01-else-blocks/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Else blocks" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/02-else-if-blocks/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | {#if x > 10} 6 |

{x} is greater than 10

7 | {:else if 5 > x} 8 |

{x} is less than 5

9 | {:else} 10 |

{x} is between 5 and 10

11 | {/if} -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/02-else-if-blocks/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Else-if blocks" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/03-each-blocks/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Each blocks" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/04-keyed-each-blocks/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Keyed each blocks" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/05-await-blocks/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Await blocks" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/03-logic/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Logic" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/00-dom-events/App.svelte: -------------------------------------------------------------------------------- 1 | 9 | 10 | 13 | 14 |
15 | The mouse position is {m.x} x {m.y} 16 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/00-dom-events/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "DOM events" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/01-inline-handlers/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 |
10 | The mouse position is {m.x} x {m.y} 11 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/01-inline-handlers/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Inline handlers" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/02-event-modifiers/App.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/02-event-modifiers/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Event modifiers" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/03-component-events/App.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/03-component-events/Inner.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/03-component-events/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Component events" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/04-event-forwarding/App.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/04-event-forwarding/Inner.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/04-event-forwarding/Outer.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/04-event-forwarding/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Event forwarding" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/05-dom-event-forwarding/App.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/05-dom-event-forwarding/FancyButton.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/05-dom-event-forwarding/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "DOM event forwarding" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/04-events/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Events" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/00-text-inputs/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 |

Hello {name || 'stranger'}!

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/00-text-inputs/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Text inputs" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/01-numeric-inputs/App.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 10 | 11 | 15 | 16 |

{a} + {b} = {a + b}

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/01-numeric-inputs/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Numeric inputs" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/02-checkbox-inputs/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Checkbox inputs" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/03-group-inputs/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Group inputs" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/04-textarea-inputs/App.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | 10 | 11 | 12 | {@html marked(text)} -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/04-textarea-inputs/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Textarea inputs" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/05-select-bindings/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Select bindings" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/06-multiple-select-bindings/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Select multiple" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/07-each-block-bindings/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Each block bindings" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/08-media-elements/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Media elements" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/09-dimensions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Dimensions" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/10-bind-this/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "bind:this={canvas}" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/11-component-bindings/App.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 |

{view}

13 | 14 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/11-component-bindings/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Component bindings" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/05-bindings/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Bindings" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/06-lifecycle/00-onmount/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "onMount" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/06-lifecycle/01-ondestroy/App.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 |

9 | The page has been open for 10 | {seconds} {seconds === 1 ? 'second' : 'seconds'} 11 |

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/06-lifecycle/01-ondestroy/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "onDestroy" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/06-lifecycle/01-ondestroy/utils.js: -------------------------------------------------------------------------------- 1 | import { onDestroy } from 'svelte'; 2 | 3 | export function onInterval(callback, milliseconds) { 4 | const interval = setInterval(callback, milliseconds); 5 | 6 | onDestroy(() => { 7 | clearInterval(interval); 8 | }); 9 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/06-lifecycle/02-update/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "beforeUpdate and afterUpdate" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/06-lifecycle/03-tick/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "tick" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/06-lifecycle/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Lifecycle" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/00-writable-stores/Decrementer.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/00-writable-stores/Incrementer.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/00-writable-stores/Resetter.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/00-writable-stores/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Writable stores" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/00-writable-stores/stores.js: -------------------------------------------------------------------------------- 1 | import { writable } from 'svelte/store'; 2 | 3 | export const count = writable(0); -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/01-auto-subscriptions/App.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 |

The count is {$count}

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/01-auto-subscriptions/Decrementer.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/01-auto-subscriptions/Incrementer.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/01-auto-subscriptions/Resetter.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/01-auto-subscriptions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Auto-subscriptions" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/01-auto-subscriptions/stores.js: -------------------------------------------------------------------------------- 1 | import { writable } from 'svelte/store'; 2 | 3 | export const count = writable(0); -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/02-readable-stores/App.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 |

The time is {formatter.format($time)}

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/02-readable-stores/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Readable stores" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/02-readable-stores/stores.js: -------------------------------------------------------------------------------- 1 | import { readable } from 'svelte/store'; 2 | 3 | export const time = readable(new Date(), function start(set) { 4 | const interval = setInterval(() => { 5 | set(new Date()); 6 | }, 1000); 7 | 8 | return function stop() { 9 | clearInterval(interval); 10 | }; 11 | }); -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/03-derived-stores/App.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 |

The time is {formatter.format($time)}

13 | 14 |

15 | This page has been open for 16 | {$elapsed} {$elapsed === 1 ? 'second' : 'seconds'} 17 |

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/03-derived-stores/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Derived stores" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/04-custom-stores/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |

The count is {$count}

6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/04-custom-stores/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Custom stores" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/04-custom-stores/stores.js: -------------------------------------------------------------------------------- 1 | import { writable } from 'svelte/store'; 2 | 3 | function createCount() { 4 | const { subscribe, set, update } = writable(0); 5 | 6 | return { 7 | subscribe, 8 | increment: () => update(n => n + 1), 9 | decrement: () => update(n => n - 1), 10 | reset: () => set(0) 11 | }; 12 | } 13 | 14 | export const count = createCount(); -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/07-stores/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Stores" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/08-motion/00-tweened/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Tweened" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/08-motion/01-spring/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Spring" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/08-motion/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Motion" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/00-transition/App.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 10 | 11 | {#if visible} 12 |

13 | Fades in and out 14 |

15 | {/if} -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/00-transition/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "The transition directive" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/01-adding-parameters-to-transitions/App.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 10 | 11 | {#if visible} 12 |

13 | Flies in and out 14 |

15 | {/if} -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/01-adding-parameters-to-transitions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Adding parameters" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/02-in-and-out/App.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 10 | 11 | {#if visible} 12 |

13 | Flies in, fades out 14 |

15 | {/if} -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/02-in-and-out/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "In and out" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/03-custom-css-transitions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Custom CSS transitions" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/04-custom-js-transitions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Custom JS transitions" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/05-transition-events/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Transition events" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/06-deferred-transitions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Deferred transitions" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/09-transitions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Transitions" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/10-animations/00-animate/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "The animate directive" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/10-animations/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Animations" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/11-easing/00-easing/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Ease Visualiser" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/11-easing/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Easing" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/12-svg/01-clock/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Clock" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/12-svg/02-bar-chart/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Bar chart" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/12-svg/03-area-chart/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Area chart" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/12-svg/04-scatterplot/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Scatterplot" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/12-svg/05-svg-transitions/custom-transitions.js: -------------------------------------------------------------------------------- 1 | import { cubicOut } from 'svelte/easing'; 2 | 3 | export function expand(node, params) { 4 | const { 5 | delay = 0, 6 | duration = 400, 7 | easing = cubicOut 8 | } = params; 9 | 10 | const w = parseFloat(getComputedStyle(node).strokeWidth); 11 | 12 | return { 13 | delay, 14 | duration, 15 | easing, 16 | css: t => `opacity: ${t}; stroke-width: ${t * w}` 17 | }; 18 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/12-svg/05-svg-transitions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "SVG transitions" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/12-svg/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "SVG" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/13-actions/00-actions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "The use directive" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/13-actions/01-adding-parameters-to-actions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Adding parameters" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/13-actions/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Actions" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/14-classes/00-classes/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "The class directive" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/14-classes/01-class-shorthand/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 11 | 15 | 16 |
17 | some {big ? 'big' : 'small'} text 18 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/14-classes/01-class-shorthand/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Shorthand class directive" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/14-classes/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Classes" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/00-slots/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 |

Hello!

7 |

This is a box. It can contain anything.

8 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/00-slots/Box.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/00-slots/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Slots" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/01-slot-fallbacks/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 |

Hello!

7 |

This is a box. It can contain anything.

8 |
9 | 10 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/01-slot-fallbacks/Box.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 | no content was provided 15 | 16 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/01-slot-fallbacks/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Slot fallbacks" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/02-named-slots/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | P. Sherman 8 | 9 | 10 | 11 | 42 Wallaby Way
12 | Sydney 13 |
14 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/02-named-slots/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Named slots" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/03-slot-props/Hoverable.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/03-slot-props/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Slot props" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/04-modal/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Modal" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/15-composition/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Component composition" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/16-context/00-context-api/mapbox.js: -------------------------------------------------------------------------------- 1 | import mapbox from 'mapbox-gl'; 2 | 3 | // https://docs.mapbox.com/help/glossary/access-token/ 4 | mapbox.accessToken = MAPBOX_ACCESS_TOKEN; 5 | 6 | const key = {}; 7 | 8 | export { mapbox, key }; -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/16-context/00-context-api/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "setContext and getContext" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/16-context/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Context API" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/00-svelte-self/File.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 13 | 14 | {name} -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/00-svelte-self/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/01-svelte-component/BlueThing.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | blue thing -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/01-svelte-component/GreenThing.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | green thing -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/01-svelte-component/RedThing.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | red thing -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/01-svelte-component/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/02-svelte-window/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/03-svelte-window-bindings/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": " bindings" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/04-svelte-body/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/05-svelte-head/App.svelte: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

Hello world!

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/05-svelte-head/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/17-special-elements/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Special elements" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/18-module-context/01-module-exports/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Named exports" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/18-module-context/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Module context" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/19-debugging/00-debug/App.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | {@debug user} 12 | 13 |

Hello {user.firstname}!

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/19-debugging/00-debug/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "The @debug tag" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/19-debugging/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Debugging" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/20-7guis/01-7guis-counter/App.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/20-7guis/01-7guis-counter/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Counter" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/20-7guis/02-7guis-temperature/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Temperature Converter" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/20-7guis/03-7guis-flight-booker/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Flight booker" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/20-7guis/04-7guis-timer/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Timer" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/20-7guis/05-7guis-crud/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "CRUD" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/20-7guis/06-7guis-circles/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Circle Drawer" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/20-7guis/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "7GUIs" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/21-miscellaneous/01-hacker-news/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Hacker News" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/21-miscellaneous/02-immutable-data/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Immutable data" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/21-miscellaneous/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Miscellaneous" 3 | } -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/22-bugs/CSS/App.svelte: -------------------------------------------------------------------------------- 1 | 46 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/22-bugs/CSS/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "CSS BUG" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/99-embeds/20181225-blog-svelte-css-in-js/Hero.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 |

7 |
8 |
9 |
CSS
10 | in JS 11 |
12 | in HTML 13 |
14 |

15 |
-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/99-embeds/20181225-blog-svelte-css-in-js/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "-" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/99-embeds/20190420-blog-write-less-code/App.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 |

{a} + {b} = {a + b}

-------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/99-embeds/20190420-blog-write-less-code/meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "-" 3 | } 4 | -------------------------------------------------------------------------------- /packages/mdsvex/test/_fixtures/svelte/99-embeds/meta.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/mdsvex/test/utils.ts: -------------------------------------------------------------------------------- 1 | export function lines(str?: string): string[] { 2 | if (!str) return []; 3 | return str 4 | .split('\n') 5 | .filter((s) => !!s.trim()) 6 | .map((s) => s.trim()); 7 | } 8 | -------------------------------------------------------------------------------- /packages/parse/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # parse 2 | 3 | ## 0.1.1 4 | ### Patch Changes 5 | 6 | 7 | 8 | - [#359](https://github.com/pngwn/MDsveX/pull/359) [`07a3e6f`](https://github.com/pngwn/MDsveX/commit/07a3e6f8f7f163b91e1b7adc881957dac3825288) Thanks [@pngwn](https://github.com/pngwn)! - Split modules up, add new build approach with constant replacements. 9 | -------------------------------------------------------------------------------- /packages/pfm-parse/build.js: -------------------------------------------------------------------------------- 1 | import { build } from 'esbuild'; 2 | 3 | build({ 4 | entryPoints: ['src/main.ts'], 5 | bundle: true, 6 | minify: true, 7 | target: 'es2020', 8 | format: 'esm', 9 | outdir: 'dist', 10 | treeShaking: true, 11 | define: { 12 | MARKDOWN: 'true', 13 | SVELTE: 'false', 14 | }, 15 | }); 16 | -------------------------------------------------------------------------------- /packages/pfm-parse/src/main.ts: -------------------------------------------------------------------------------- 1 | export { parse } from 'parse'; 2 | -------------------------------------------------------------------------------- /packages/site/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /node_modules 3 | /cypress/screenshots/ 4 | /.svelte-kit 5 | -------------------------------------------------------------------------------- /packages/site/README.md: -------------------------------------------------------------------------------- 1 | # mdsvex-playground 2 | 3 | Hello -------------------------------------------------------------------------------- /packages/site/rollup.workers.js: -------------------------------------------------------------------------------- 1 | import resolve from "@rollup/plugin-node-resolve"; 2 | import json from "@rollup/plugin-json"; 3 | import { terser } from "rollup-plugin-terser"; 4 | 5 | const dev = true; 6 | 7 | // bundle workers 8 | export default ["compiler", "bundler"].map(x => ({ 9 | input: `src/components/Repl/workers/${x}/index.js`, 10 | output: { 11 | file: `static/workers/${x}.js`, 12 | format: "iife" 13 | }, 14 | plugins: [resolve(), json(), terser()] 15 | })); 16 | -------------------------------------------------------------------------------- /packages/site/src/components/Repl/env.js: -------------------------------------------------------------------------------- 1 | export const is_browser = typeof window !== 'undefined'; -------------------------------------------------------------------------------- /packages/site/src/components/Repl/workers/bundler/plugins/glsl.js: -------------------------------------------------------------------------------- 1 | export default { 2 | name: 'glsl', 3 | transform: (code, id) => { 4 | if (!id.endsWith('.glsl')) return; 5 | 6 | return { 7 | code: `export default ${JSON.stringify(code)};`, 8 | map: null 9 | }; 10 | } 11 | }; -------------------------------------------------------------------------------- /packages/site/src/components/Repl/workers/bundler/plugins/json.js: -------------------------------------------------------------------------------- 1 | export default { 2 | name: 'json', 3 | transform: (code, id) => { 4 | if (!id.endsWith('.json')) return; 5 | 6 | return { 7 | code: `export default ${code};`, 8 | map: null 9 | }; 10 | } 11 | }; -------------------------------------------------------------------------------- /packages/site/src/components/typewriter.js: -------------------------------------------------------------------------------- 1 | export function typewriter(node, { speed = 50, delay }) { 2 | const valid = 3 | node.childNodes.length === 1 && node.childNodes[0].nodeType === 3; 4 | if (!valid) return {}; 5 | 6 | const text = node.textContent; 7 | const duration = text.length * speed; 8 | 9 | return { 10 | duration, 11 | delay, 12 | tick: (t, u) => { 13 | const i = ~~(text.length * t); 14 | node.textContent = text.slice(0, i); 15 | } 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /packages/site/src/routes/+layout.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 |