0.1.3 • Published 3 years ago

@deskeen/web-builder-inline-markdown v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Web Builder Module - Inline Markdown files

This module allows the @deskeen/web-builder engine to inline Markdown files.

It uses the @deskeen/markdown parser under the hood to parse the text.

Install

npm install @deskeen/web-builder
npm install @deskeen/web-builder-inline-markdown

Usage

And add the module to the list of modules:

const builder = require('@deskeen/web-builder')
const builder.build([
  source: [
    // List of files or directories that include
    // {{inlineMD:file.md}} tags
  ],
  modules: [
    [
      '@deskeen/web-builder-inline-markdown',
      {
        assets: [
          // List of directories that include
          // the markdown files included in the tags
        ],
        onAssetsLoad: assetsMap => {
          // Optional event that allows to edit the content
          // of the assets before passing it to the parser.
        },
        parserOptions: {
          // See https://github.com/deskeen/markdown
          // for a complete list of options
        }
      }
    ]
  ]
])

Contact

You can reach me at {my_firstname}@{my_name}.fr

Licence

MIT Licence - Copyright (c) Morgan Schmiedt

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago