Svelte and Pandoc


Dheepak Krishnamurthy


January 12, 2022

This page is a test of using a svelte component when using pandoc as a preprocessor.

The following is a button that is a Svelte component that increments a counter when you click on it:

The following is the code I included in the Markdown source file:

  import Counter from "$lib/components/Counter.svelte";

<Counter />

You can click on the date in this blog post to see the source markdown file that was used to render this page.



BibTeX citation:
  author = {Krishnamurthy, Dheepak},
  title = {Svelte and {Pandoc}},
  date = {2022-01-12},
  url = {},
  langid = {en}
For attribution, please cite this work as:
D. Krishnamurthy, “Svelte and Pandoc,” Jan. 12, 2022.