svelte-preprocess-md

0.1.3 • Public • Published

svelte-preprocess-md

Example

<script>
  import Component from './Component';
  let title = 'Hello World';
</script>

# {title}

<Component />

Usage

// rollup.config.js
import svelte from 'rollup-plugin-svelte';
import md from 'svelte-preprocess-md';

export default {
  // ...
  plugins: [
    svelte({
      extensions: ['.html', '.md'],
      preprocess: md()
    })
  ]
}

API

md([options, extend])

// ...
preprocess: md()

preprocess: md({ linkify: true })

preprocess: md(md => {
  return md
    .use(plugin1)
    .use(plugin2, options);
});

preprocess: md(
  { typographer: false},
  md => {
    return md
      .use(plugin3);
  }
)

/svelte-preprocess-md/

    Package Sidebar

    Install

    npm i svelte-preprocess-md

    Weekly Downloads

    3

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    3.03 kB

    Total Files

    4

    Last publish

    Collaborators

    • timhall