snarkdown-loader

1.1.0 • Public • Published

npm node chat size total-downloads issues GitHub license

snarkdown-loader

Getting Started

A lightweight markdown loader using snarkdown

To begin, you'll need to install snarkdown-loader:

npm install snarkdown-loader --save-dev

Then add the loader to your webpack config. For example:

index.js

import file from 'readme.md';

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /.md$/,
        use: [
          {
            loader: `snarkdown-loader`,
          },
        ],
      },
    ],
  },
};

And run webpack via your preferred method.

Example

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /.md$/,
        use: [
          {
            loader: 'html-loader', // Exports HTML as string
          },
          {
            loader: `snarkdown-loader`, // converts the markdown to HTML
          },
        ],
      },
    ],
  },
};

Contributing

Please take a moment to read our contributing guidelines if you haven't yet done so.

CONTRIBUTING

MIT

Maintained by

pluggingIn logo

Author

Aniketh Saha

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.00
0.0.41
0.0.20

Package Sidebar

Install

npm i snarkdown-loader

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

7.66 kB

Total Files

6

Last publish

Collaborators

  • anixsaha